Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
df5b4734 by Adrià Tarroja Caubet at 2023-02-14T12:48:01+01:00
Include in credit amount only invoice lines of type line

Closes #12076
- - - - -


1 changed file:

- modules/sale_credit_limit/party.py


Changes:

=====================================
modules/sale_credit_limit/party.py
=====================================
@@ -35,6 +35,8 @@
                 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(



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/df5b4734b8f288058a4074b3bbebd5f97b3f9d88

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/df5b4734b8f288058a4074b3bbebd5f97b3f9d88
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to