changeset 80be76e2cdbc in modules/account_statement:default
details:
https://hg.tryton.org/modules/account_statement?cmd=changeset&node=80be76e2cdbc
description:
Remove unused get_end_balance function
issue11394
review384961002
diffstat:
statement.py | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diffs (16 lines):
diff -r 7e61f757346d -r 80be76e2cdbc statement.py
--- a/statement.py Wed Apr 06 23:37:42 2022 +0200
+++ b/statement.py Fri Apr 08 13:39:34 2022 +0200
@@ -231,12 +231,6 @@
if self.journal:
return self.journal.currency.id
- def get_end_balance(self, name):
- end_balance = self.start_balance
- for line in self.lines:
- end_balance += line.amount
- return end_balance
-
@fields.depends('start_balance', 'end_balance')
def on_change_with_balance(self, name=None):
return ((getattr(self, 'end_balance', 0) or 0)