This commit is contained in:
2026-01-27 18:29:50 +01:00
parent aa10a58b60
commit 3846932517

View File

@@ -250,7 +250,7 @@ class AutomationDocument(ModelSQL, ModelView, Workflow):
lot_net_weight = Decimal(row[4])
logger.info("LOT_NET_WEIGHT:%s",lot_net_weight)
lot_gross_weight = Decimal(row[3])
lot_bales = int(row[2])
lot_bales = Decimal(row[2])
lot_number = row[1]
customer = str(row[7]).strip().upper()
sell_price_currency = str(row[8]).strip().upper()
@@ -354,7 +354,7 @@ class AutomationDocument(ModelSQL, ModelView, Workflow):
l = LotAdd()
l.lot_qt = lot_bales
l.lot_unit = Uom.get_by_name('bale')
l.lot_unit_line = lot_unit
l.lot_unit_line = Uom.get_by_name(lot_unit)
l.lot_quantity = round(lot_net_weight,2)
l.lot_gross_quantity = round(lot_gross_weight,2)
l.lot_premium = premium