27.01.26
This commit is contained in:
@@ -390,9 +390,9 @@ class AutomationDocument(ModelSQL, ModelView, Workflow):
|
|||||||
if lot.lot_type == 'physic':
|
if lot.lot_type == 'physic':
|
||||||
wr_payload = {
|
wr_payload = {
|
||||||
"chunk_key": lot.lot_chunk_key,
|
"chunk_key": lot.lot_chunk_key,
|
||||||
"gross_weight": round(lot.lot_gross_quantity / factor,5),
|
"gross_weight": float(round(lot.lot_gross_quantity / factor,5)),
|
||||||
"net_weight": round(lot.lot_quantity / factor,5),
|
"net_weight": float(round(lot.lot_quantity / factor,5)),
|
||||||
"tare_total": round(wr.tare_kg * (lot.lot_quantity / weight_total),5) ,
|
"tare_total": float(round(wr.tare_kg * (lot.lot_quantity / weight_total),5)) ,
|
||||||
"bags": int(wr.bales * (lot.lot_quantity / weight_total)),
|
"bags": int(wr.bales * (lot.lot_quantity / weight_total)),
|
||||||
"surveyor_code": 231,
|
"surveyor_code": 231,
|
||||||
"place_key": 0,
|
"place_key": 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user