Skip to content

Commit

Permalink
Merge pull request #36740 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-36728

fix: include gain/loss journal in AR/AP reports (backport #36728)
  • Loading branch information
ruthra-kumar authored Aug 21, 2023
2 parents d082e68 + 4606079 commit fe78076
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,10 @@ def get_exchange_rate_revaluations(self):
.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()
)
Expand Down

0 comments on commit fe78076

Please sign in to comment.