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

        issue10399
        review348381002
        (grafted from eab463f01fae14d844db6a997fb7c7a575d9045a)
diffstat:

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

diffs (15 lines):

diff -r e47548a8b621 -r e33b77194a34 invoice.py
--- a/invoice.py        Sat Apr 04 17:44:02 2020 +0200
+++ b/invoice.py        Sun May 16 17:46:47 2021 +0200
@@ -97,10 +97,7 @@
                 if line.type != 'line':
                     continue
                 if line.account.kind == '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