04.02.26
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user