Skip to content

Commit

Permalink
Merge pull request frappe#30845 from frappe/mergify/bp/version-13-hot…
Browse files Browse the repository at this point in the history
…fix/pr-30843

fix: Multi currency opening invoices (backport frappe#30843)
  • Loading branch information
deepeshgarg007 committed Apr 29, 2022
2 parents f7bf4a3 + a3de032 commit a98263c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,13 @@ def get_invoices(self):
)
or {}
)

default_currency = frappe.db.get_value(row.party_type, row.party, "default_currency")

if company_details:
invoice.update(
{
"currency": company_details.get("default_currency"),
"currency": default_currency or company_details.get("default_currency"),
"letter_head": company_details.get("default_letter_head"),
}
)
Expand Down

0 comments on commit a98263c

Please sign in to comment.