Include in credit amount only invoice lines of type line
Closes #12076 (grafted from df5b4734b8f288058a4074b3bbebd5f97b3f9d88) --HG-- branch : 6.0
This commit is contained in:
1 parent
3e6b5f967d
commit
376485ee9d
1 file changed
+2
@@ -35,6 +35,8 @@ class Party(metaclass=PoolMeta):
|
||||
if not quantity:
|
||||
continue
|
||||
for invoice_line in line.invoice_lines:
|
||||
if invoice_line.type != 'line':
|
||||
continue
|
||||
invoice = invoice_line.invoice
|
||||
if invoice and invoice.move:
|
||||
quantity -= Uom.compute_qty(
|
||||
|
||||
Reference in new issue
Block a user