14.02.26
This commit is contained in:
@@ -528,6 +528,7 @@ class Lot(ModelSQL, ModelView):
|
||||
lqh = LotQtHist()
|
||||
lqh.quantity_type = qt_type
|
||||
lqh.quantity = net
|
||||
logger.info("ADD_QUANTITY_TO_HIST:%s",gross)
|
||||
lqh.gross_quantity = gross
|
||||
lqh.lot = self
|
||||
return lqh
|
||||
@@ -544,6 +545,7 @@ class Lot(ModelSQL, ModelView):
|
||||
if existing:
|
||||
hist = existing[0]
|
||||
hist.quantity = net
|
||||
logger.info("SET_CURRENT_HIST:%s",gross)
|
||||
hist.gross_quantity = gross
|
||||
else:
|
||||
lot_hist.append(self.add_quantity_to_hist(net, gross, lqtt[0]))
|
||||
|
||||
@@ -630,6 +630,7 @@ class Line(metaclass=PoolMeta):
|
||||
lqh = LotQtHist()
|
||||
lqh.quantity_type = lqtt[0]
|
||||
lqh.quantity = lot.lot_quantity
|
||||
logger.info("PURCHASE_VALIDATE:%s",lot.lot_quantity)
|
||||
lqh.gross_quantity = lot.lot_quantity
|
||||
lot.lot_hist = [lqh]
|
||||
if line.quantity > 0:
|
||||
|
||||
Reference in New Issue
Block a user