main #7

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

View File

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