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