fix: include gain/loss journal in AR/AP reports

(cherry picked from commit e3104f1898)
This commit is contained in:
ruthra kumar
2023-08-20 20:13:31 +05:30
committed by Mergify
parent e1bd9a7e8d
commit 4606079568

View File

@@ -1090,7 +1090,10 @@ class ReceivablePayableReport(object):
.where(
(je.company == self.filters.company)
& (je.posting_date.lte(self.filters.report_date))
& (je.voucher_type == "Exchange Rate Revaluation")
& (
(je.voucher_type == "Exchange Rate Revaluation")
| (je.voucher_type == "Exchange Gain Or Loss")
)
)
.run()
)