From 7c0367e67aa493a0348e35ee3dbe2b532aefabe3 Mon Sep 17 00:00:00 2001 From: Niels Huylebroeck Date: Wed, 8 May 2013 16:03:48 +0200 Subject: [PATCH] [FIX] account_financial_report_webkit: fixed issue where opening balance would not be shown on the general ledger --- account_financial_report_webkit/report/general_ledger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/account_financial_report_webkit/report/general_ledger.py b/account_financial_report_webkit/report/general_ledger.py index 535f8499..7f495cfb 100644 --- a/account_financial_report_webkit/report/general_ledger.py +++ b/account_financial_report_webkit/report/general_ledger.py @@ -105,6 +105,8 @@ class GeneralLedgerWebkit(report_sxw.rml_parse, CommonReportHeaderWebkit): accounts = self.get_all_accounts(new_ids, exclude_type=['view']) if initial_balance_mode == 'initial_balance': init_balance_memoizer = self._compute_initial_balances(accounts, start, fiscalyear) + elif initial_balance_mode == 'opening_balance': + init_balance_memoizer = self._read_opening_balance(accounts, start) ledger_lines_memoizer = self._compute_account_ledger_lines(accounts, init_balance_memoizer, main_filter, target_move, start, stop)