changeset eab463f01fae in modules/account_deposit:default
details: 
https://hg.tryton.org/modules/account_deposit?cmd=changeset&node=eab463f01fae
description:
        Check party deposit for all negative deposit lines

        issue10399
        review348381002
diffstat:

 invoice.py |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (15 lines):

diff -r bd7cef6e4bf4 -r eab463f01fae invoice.py
--- a/invoice.py        Mon May 03 15:49:48 2021 +0200
+++ b/invoice.py        Sun May 16 17:46:47 2021 +0200
@@ -97,10 +97,7 @@
                 if line.type != 'line':
                     continue
                 if line.account.type.deposit:
-                    if ((invoice.type.endswith('invoice')
-                            and line.amount < 0)
-                            or (invoice.type.endswith('credit_note')
-                                and line.amount > 0)):
+                    if line.amount < 0:
                         sign = 1 if invoice.type.startswith('in') else -1
                         to_check.add((invoice.party, line.account, sign))
 

Reply via email to