This commit is contained in:
2026-02-05 16:48:16 +01:00
parent aaf4a264a1
commit 91f85ea7c1

View File

@@ -109,11 +109,14 @@ class Fee(ModelSQL,ModelView):
if line:
if line.lots:
qt = sum([e.get_current_quantity() for e in line.lots])
logger.info("ON_CHANGE_WITH_QT0:%s",qt)
if not qt:
logger.info("ON_CHANGE_WITH_QT1:%s",qt)
LotQt = Pool().get('lot.qt')
lqts = LotQt.search(['lot_shipment_in','=',self.shipment_in.id])
if lqts:
qt = Decimal(lqts[0].lot_quantity)
logger.info("ON_CHANGE_WITH_QT2:%s",qt)
if self.mode != 'ppack':
return qt
else: