From 1326669f01dde5903b25bb6dc9208a0db0b704b3 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Wed, 11 Feb 2026 07:36:47 +0100 Subject: [PATCH] 11.02.26 --- modules/automation/automation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/automation/automation.py b/modules/automation/automation.py index f30516e..2b8838d 100644 --- a/modules/automation/automation.py +++ b/modules/automation/automation.py @@ -243,9 +243,9 @@ class AutomationDocument(ModelSQL, ModelView, Workflow): if lot.lot_type == 'physic': wr_payload = { "chunk_key": lot.lot_chunk_key, - "gross_weight": float(round(lot.lot_qt * factor_gross,5)), - "net_weight": float(round(lot.lot_qt * factor_net,5)), - "tare_total": float(round(wr.tare_kg * (lot.lot_qt / wr.bales),5)) , + "gross_weight": float(round(Decimal(lot.lot_qt) * factor_gross,5)), + "net_weight": float(round(Decimal(lot.lot_qt) * factor_net,5)), + "tare_total": float(round(wr.tare_kg * (Decimal(lot.lot_qt) / wr.bales),5)) , "bags": int(lot.lot_qt), "surveyor_code": sh[0].controller.get_alf(), "place_key": sh[0].to_location.get_places(),