This commit is contained in:
2026-02-04 18:02:09 +01:00
parent 71716c1ad5
commit 2ebad01847
5 changed files with 56 additions and 13 deletions

View File

@@ -1928,6 +1928,16 @@ class Line(sequence_ordered(), ModelSQL, ModelView):
invoice_line.fee = fee[0]
if fee[0].mode == 'lumpsum':
invoice_line.quantity = 1
elif fee[0].mode == 'ppack':
invoice_line.quantity = fee[0].quantity
else:
seq = 0
LotQtType = Pool().get('lot.qt.type')
lqt = LotQtType.search([('name','=','BL')])
if lqt:
seq = lqt[0].sequence
invoice_line.quantity = fee[0].get_fee_lots_qt(seq)
lines.append(invoice_line)
logger.info("GETINVLINE:%s",self.product.type)
logger.info("GETINVLINE2:%s",l.invoice_line_prov)