changeset 320c954dbd94 in modules/account_deposit:6.0
details:
https://hg.tryton.org/modules/account_deposit?cmd=changeset&node=320c954dbd94
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 eb154916a302 -r 320c954dbd94 invoice.py
--- a/invoice.py Mon May 03 15:49:47 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))