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


Commits:
b88f769c by Adrià Tarroja Caubet at 2023-03-09T15:26:25+01:00
Skip sale lines without the type line to compute credit amount

Closes #12130
- - - - -


1 changed file:

- modules/sale_credit_limit/party.py


Changes:

=====================================
modules/sale_credit_limit/party.py
=====================================
@@ -32,7 +32,7 @@
             amount = 0
             for line in sale.lines:
                 quantity = line.quantity
-                if not quantity:
+                if not quantity or (line.type != 'line'):
                     continue
                 for invoice_line in line.invoice_lines:
                     if invoice_line.type != 'line':



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

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


Reply via email to