Fee qt state
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user