Skip to content
Snippets Groups Projects
Commit 87f77421 authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Fix dynamic values in statement reports

parent fe4a5869
No related branches found
No related merge requests found
Pipeline #5879 failed
......@@ -31,10 +31,10 @@
credit_sum = 0.0
balance_sum = 0.0
for doc in docids:
debit_sum += doc.debit
credit_sum += doc.credit
balance_sum += doc.reporting_balance
for aml in self.env["account.move.line"].browse(docids):
debit_sum += aml.debit
credit_sum += aml.credit
balance_sum += aml.reporting_balance
return {
"debit_sum": debit_sum,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment