Skip to content

Commit

Permalink
fix: Multi currency opening invoices
Browse files Browse the repository at this point in the history
(cherry picked from commit a8452c2)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Apr 29, 2022
1 parent 731107d commit 2e62d51
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 2e62d51

Please sign in to comment.