This commit is contained in:
2026-02-11 07:36:47 +01:00
parent e37cd4a1cc
commit 1326669f01

View File

@@ -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(),