Skip to content

Commit

Permalink
Merge PR #1090 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jan 3, 2024
2 parents 503db11 + 45ad754 commit bbee28b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion account_financial_report/report/general_ledger_xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _generate_report_content(self, workbook, report, data, report_data):
# For each account
for account in general_ledger:
# Write account title
total_bal_curr = 0
total_bal_curr = account["init_bal"].get("bal_curr", 0)
self.write_array_title(
account["code"] + " - " + accounts_data[account["id"]]["name"],
report_data,
Expand Down
5 changes: 4 additions & 1 deletion account_financial_report/report/templates/general_ledger.xml
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@
</t>
</div>
<!-- Display each lines -->
<t t-set="total_bal_curr" t-value="0" />
<t
t-set="total_bal_curr"
t-value="account_or_group_item_object['init_bal'].get('bal_curr', 0)"
/>
<t t-foreach="account_or_group_item_object['move_lines']" t-as="line">
<!-- # lines or centralized lines -->
<div class="act_as_row lines">
Expand Down

0 comments on commit bbee28b

Please sign in to comment.