Skip to content
Snippets Groups Projects
Commit 9aa8a212 authored by Quentin De Paoli's avatar Quentin De Paoli
Browse files

[FIX] account: pdf report of general ledger was including the first day of...

[FIX] account: pdf report of general ledger was including the first day of range in the initial balance. PR #11316
parent f4d79a2b
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ class ReportGeneralLedger(models.AbstractModel): ...@@ -31,7 +31,7 @@ class ReportGeneralLedger(models.AbstractModel):
# Prepare initial sql query and Get the initial move lines # Prepare initial sql query and Get the initial move lines
if init_balance: if init_balance:
init_tables, init_where_clause, init_where_params = MoveLine.with_context(date_to=self.env.context.get('date_from'), date_from=False)._query_get() init_tables, init_where_clause, init_where_params = MoveLine.with_context(date_from=self.env.context.get('date_from'), date_to=False, initial_bal=True)._query_get()
init_wheres = [""] init_wheres = [""]
if init_where_clause.strip(): if init_where_clause.strip():
init_wheres.append(init_where_clause.strip()) init_wheres.append(init_where_clause.strip())
......
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