commit | e3104f189844043c0c06f3d7f622391f83a0956f | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Sun Aug 20 20:13:31 2023 +0530 |
committer | ruthra kumar <ruthra@erpnext.com> | Sun Aug 20 20:13:31 2023 +0530 |
tree | d394da227f52ea79fc2785e73e2b1c5c7222bd2c | |
parent | 98adfb4c9a1a115fd6eba9ba71efa5ba54c0ebb5 [diff] |
fix: include gain/loss journal in AR/AP reports
diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index f78a840..a7b35a5 100755 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py
@@ -1090,7 +1090,10 @@ .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() )