Browse Source

Merge pull request #359 from acsone/10.0-fix-future-date-qweb-report-ape

[10.0][FIX] account_financial_report_qweb: date condition in open items report.
pull/373/head
Jordi Ballester Alomar 7 years ago
committed by GitHub
parent
commit
464c8bc232
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      account_financial_report_qweb/report/open_items.py

8
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

Loading…
Cancel
Save