From a402285fae3b7dd0b55aa90317541f4eb2fb9613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Thu, 5 Jan 2023 17:14:32 +0100 Subject: [PATCH] [FIX] account_financial_report: General ledger changes: - Fix total_bal_curr value from General ledger to prevent wrong values - Prevent wrong values TT41041 --- account_financial_report/report/general_ledger_xlsx.py | 4 ++-- account_financial_report/report/templates/general_ledger.xml | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/account_financial_report/report/general_ledger_xlsx.py b/account_financial_report/report/general_ledger_xlsx.py index adbeabb5..3c5bfb3a 100644 --- a/account_financial_report/report/general_ledger_xlsx.py +++ b/account_financial_report/report/general_ledger_xlsx.py @@ -146,7 +146,7 @@ class GeneralLedgerXslx(models.AbstractModel): # For each account for account in general_ledger: # Write account title - total_bal_curr = account["init_bal"].get("bal_curr", 0) + total_bal_curr = 0 self.write_array_title( account["code"] + " - " + accounts_data[account["id"]]["name"], report_data, @@ -235,7 +235,7 @@ class GeneralLedgerXslx(models.AbstractModel): else: # For each partner - total_bal_curr = account["init_bal"]["bal_curr"] + total_bal_curr = 0 for group_item in account["list_grouped"]: # Write partner title self.write_array_title(group_item["name"], report_data) diff --git a/account_financial_report/report/templates/general_ledger.xml b/account_financial_report/report/templates/general_ledger.xml index 47cfeefd..c73b0436 100644 --- a/account_financial_report/report/templates/general_ledger.xml +++ b/account_financial_report/report/templates/general_ledger.xml @@ -363,10 +363,7 @@ - +