diff --git a/account_financial_report_qweb/wizard/ledger.sql b/account_financial_report_qweb/wizard/ledger.sql index 899c4920..9e8afd07 100644 --- a/account_financial_report_qweb/wizard/ledger.sql +++ b/account_financial_report_qweb/wizard/ledger.sql @@ -8,8 +8,6 @@ WITH view_q as ( ml.ref, ml.journal_id, ml.partner_id, - SUM(debit) OVER w_account - debit AS init_debit, - SUM(credit) OVER w_account - credit AS init_credit, SUM(debit - credit) OVER w_account - (debit - credit) AS init_balance, SUM(debit - credit) OVER w_account AS cumul_balance FROM account_account AS acc @@ -32,6 +30,7 @@ INSERT INTO ledger_report_wizard_line ( ref, label, --counterpart + init_balance, debit, credit, cumul_balance, @@ -46,6 +45,7 @@ SELECT ref, ' TODO label ' AS label, --counterpart + init_balance, debit, credit, cumul_balance, diff --git a/account_financial_report_qweb/wizard/ledger_report_wizard.py b/account_financial_report_qweb/wizard/ledger_report_wizard.py index dfa5f5a4..4d16df0f 100644 --- a/account_financial_report_qweb/wizard/ledger_report_wizard.py +++ b/account_financial_report_qweb/wizard/ledger_report_wizard.py @@ -177,8 +177,6 @@ class LedgerReportWizardLine(models.TransientModel): cumul_debit = fields.Float() cumul_balance = fields.Float() - init_credit = fields.Float() - init_debit = fields.Float() init_balance = fields.Float() move_name = fields.Char()