26.01.26
This commit is contained in:
@@ -292,8 +292,8 @@ class AutomationDocument(ModelSQL, ModelView, Workflow):
|
|||||||
sale_line.premium = premium
|
sale_line.premium = premium
|
||||||
Sale.save([sale])
|
Sale.save([sale])
|
||||||
sale_line.sale = sale.id
|
sale_line.sale = sale.id
|
||||||
sale_line.quantity = round(lot_net_weight,5)
|
sale_line.quantity = round(lot_net_weight,2)
|
||||||
sale_line.quantity_theorical = round(lot_net_weight,5)
|
sale_line.quantity_theorical = round(lot_net_weight,2)
|
||||||
sale_line.product = Product.get_by_name('BRAZIL COTTON')
|
sale_line.product = Product.get_by_name('BRAZIL COTTON')
|
||||||
logger.info("PRODUCT:%s",sale_line.product)
|
logger.info("PRODUCT:%s",sale_line.product)
|
||||||
sale_line.unit = Uom.get_by_name(lot_unit)
|
sale_line.unit = Uom.get_by_name(lot_unit)
|
||||||
@@ -335,8 +335,8 @@ class AutomationDocument(ModelSQL, ModelView, Workflow):
|
|||||||
l.lot_qt = lot_bales
|
l.lot_qt = lot_bales
|
||||||
l.lot_unit = Uom.get_by_name('bale')
|
l.lot_unit = Uom.get_by_name('bale')
|
||||||
l.lot_unit_line = lot_unit
|
l.lot_unit_line = lot_unit
|
||||||
l.lot_quantity = round(lot_net_weight,5)
|
l.lot_quantity = round(lot_net_weight,2)
|
||||||
l.lot_gross_quantity = round(lot_gross_weight,5)
|
l.lot_gross_quantity = round(lot_gross_weight,2)
|
||||||
l.lot_premium = premium
|
l.lot_premium = premium
|
||||||
LotQt.add_physical_lots(lqt,[l])
|
LotQt.add_physical_lots(lqt,[l])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user