[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.
pull/439/head
Adrien Peiffer (ACSONE) 2017-10-16 09:57:17 +02:00 committed by Florian da Costa
parent 1a4180cd56
commit 9933ed8323
1 changed files with 4 additions and 4 deletions

View File

@ -393,11 +393,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 += """
@ -407,11 +407,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