Skip to content

Commit

Permalink
fix: incorrect exchange rate if JE has multi parties
Browse files Browse the repository at this point in the history
(cherry picked from commit 694c174)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Mar 2, 2024
1 parent d7abb21 commit 1b5a237
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,12 @@ def get_invoice_exchange_map(self, invoices, payments):
journals_map = frappe._dict(
frappe.db.get_all(
"Journal Entry Account",
filters={"parent": ("in", journals), "account": ("in", [self.receivable_payable_account])},
filters={
"parent": ("in", journals),
"account": ("in", [self.receivable_payable_account]),
"party_type": self.party_type,
"party": self.party,
},
fields=[
"parent as `name`",
"exchange_rate",
Expand Down

0 comments on commit 1b5a237

Please sign in to comment.