mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
Merge pull request #30845 from frappe/mergify/bp/version-13-hotfix/pr-30843
fix: Multi currency opening invoices (backport #30843)
This commit is contained in:
@@ -114,10 +114,13 @@ class OpeningInvoiceCreationTool(Document):
|
|||||||
)
|
)
|
||||||
or {}
|
or {}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
default_currency = frappe.db.get_value(row.party_type, row.party, "default_currency")
|
||||||
|
|
||||||
if company_details:
|
if company_details:
|
||||||
invoice.update(
|
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"),
|
"letter_head": company_details.get("default_letter_head"),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user