This commit is contained in:
2026-02-04 21:20:34 +01:00
parent 0a88b26160
commit a69a9dcb57
3 changed files with 11 additions and 10 deletions

View File

@@ -334,12 +334,12 @@ class Fee(ModelSQL,ModelView):
return super().copy(fees, default=default)
def get_fee_lots_qt(self,seq=0):
def get_fee_lots_qt(self,state_id=0):
qt = Decimal(0)
FeeLots = Pool().get('fee.lots')
fee_lots = FeeLots.search([('fee', '=', self.id)])
if fee_lots:
qt = sum([e.lot.get_current_quantity_converted(seq) for e in fee_lots])
qt = sum([e.lot.get_current_quantity_converted(state_id) for e in fee_lots])
logger.info("GET_FEE_LOTS_QT:%s",qt)
return qt