mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-25 14:11:45 +01:00
fix: include gain/loss journal in AR/AP reports
(cherry picked from commit e3104f1898)
This commit is contained in:
@@ -1090,7 +1090,10 @@ class ReceivablePayableReport(object):
|
|||||||
.where(
|
.where(
|
||||||
(je.company == self.filters.company)
|
(je.company == self.filters.company)
|
||||||
& (je.posting_date.lte(self.filters.report_date))
|
& (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()
|
.run()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user