Skip to content

Commit

Permalink
[FIX][9.0] Fix the reconciliation dates on the open_item reports
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlineDumontet committed May 17, 2017
1 parent 44b2bf8 commit 5322640
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions account_financial_report_qweb/report/open_items.py
Expand Up @@ -393,11 +393,11 @@ def _get_line_sub_query_move_lines(self,
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 += """
Expand All @@ -407,11 +407,11 @@ def _get_line_sub_query_move_lines(self,
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
Expand Down

0 comments on commit 5322640

Please sign in to comment.