From 2642b7afe5443b3f961db47b50dd9c1d8107f11b Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Mon, 16 Oct 2017 09:57:17 +0200 Subject: [PATCH] [FIX] account_financial_report_qweb: date condition in open items report. This commit includes move lines on the report date by default. These lines shouldn't be considered in the futur. --- account_financial_report_qweb/report/open_items.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/account_financial_report_qweb/report/open_items.py b/account_financial_report_qweb/report/open_items.py index 5265fd00..796a8f3f 100644 --- a/account_financial_report_qweb/report/open_items.py +++ b/account_financial_report_qweb/report/open_items.py @@ -387,11 +387,11 @@ FROM LEFT JOIN account_move_line ml_future ON ml.balance < 0 AND pr.debit_move_id = ml_future.id - AND ml_future.date >= %s + AND ml_future.date > %s LEFT JOIN account_move_line ml_past ON ml.balance < 0 AND pr.debit_move_id = ml_past.id - AND ml_past.date < %s + AND ml_past.date <= %s """ else: sub_query += """ @@ -401,11 +401,11 @@ FROM LEFT JOIN account_move_line ml_future ON ml.balance > 0 AND pr.credit_move_id = ml_future.id - AND ml_future.date >= %s + AND ml_future.date > %s LEFT JOIN account_move_line ml_past ON ml.balance > 0 AND pr.credit_move_id = ml_past.id - AND ml_past.date < %s + AND ml_past.date <= %s """ sub_query += """ WHERE