main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 1326669f01 - Show all commits

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