main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 91f85ea7c1 - Show all commits

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: