diff --git a/modules/automation/automation.py b/modules/automation/automation.py index b3ae75c..bf3e7a7 100644 --- a/modules/automation/automation.py +++ b/modules/automation/automation.py @@ -390,9 +390,9 @@ class AutomationDocument(ModelSQL, ModelView, Workflow): if lot.lot_type == 'physic': wr_payload = { "chunk_key": lot.lot_chunk_key, - "gross_weight": round(lot.lot_gross_quantity / factor,5), - "net_weight": round(lot.lot_quantity / factor,5), - "tare_total": round(wr.tare_kg * (lot.lot_quantity / weight_total),5) , + "gross_weight": float(round(lot.lot_gross_quantity / factor,5)), + "net_weight": float(round(lot.lot_quantity / factor,5)), + "tare_total": float(round(wr.tare_kg * (lot.lot_quantity / weight_total),5)) , "bags": int(wr.bales * (lot.lot_quantity / weight_total)), "surveyor_code": 231, "place_key": 0,