changeset def843dc212f in modules/account_deposit:5.8
details:
https://hg.tryton.org/modules/account_deposit?cmd=changeset&node=def843dc212f
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 c604a376b902 -r def843dc212f invoice.py
--- a/invoice.py Fri Jan 01 16:17:41 2021 +0100
+++ b/invoice.py Sun May 16 17:46:47 2021 +0200
@@ -92,10 +92,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))