Merge pull request #36740 from frappe/mergify/bp/version-14-hotfix/pr-36728

fix: include gain/loss journal in AR/AP reports (backport #36728)
This commit is contained in:
ruthra kumar
2023-08-21 20:20:35 +05:30
committed by GitHub

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()
)