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
  • Loading branch information
ruthra-kumar committed Feb 27, 2024
1 parent 8e7d47b commit 694c174
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,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 694c174

Please sign in to comment.