Fee qt state

This commit is contained in:
2026-06-18 21:11:46 +02:00
parent 2a1512a436
commit 2b0381c2ae
2 changed files with 3 additions and 12 deletions

View File

@@ -1923,12 +1923,7 @@ class Line(sequence_ordered(), ModelSQL, ModelView):
elif fee.mode == 'ppack':
invoice_line.quantity = fee.quantity
else:
state_id = 0
LotQtType = Pool().get('lot.qt.type')
lqt = LotQtType.search([('name','=','BL')])
if lqt:
state_id = lqt[0].id
invoice_line.quantity = fee.get_fee_lots_qt(state_id)
invoice_line.quantity = fee.get_fee_lots_qt()
if getattr(fee, 'state', None) != 'invoiced':
return [invoice_line]