Merge pull request #36728 from ruthra-kumar/fetch_gain_loss_in_ar_ap_report

fix: include gain/loss journal in AR/AP reports
This commit is contained in:
ruthra kumar
2023-08-21 17:22:31 +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()
)