mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
Merge pull request #38693 from frappe/mergify/bp/version-15-hotfix/pr-38692
fix: typeerror on new sites (backport #38692)
This commit is contained in:
@@ -8,7 +8,7 @@ $.extend(erpnext, {
|
|||||||
if(!company && cur_frm)
|
if(!company && cur_frm)
|
||||||
company = cur_frm.doc.company;
|
company = cur_frm.doc.company;
|
||||||
if(company)
|
if(company)
|
||||||
return frappe.get_doc(":Company", company).default_currency || frappe.boot.sysdefaults.currency;
|
return frappe.get_doc(":Company", company)?.default_currency || frappe.boot.sysdefaults.currency;
|
||||||
else
|
else
|
||||||
return frappe.boot.sysdefaults.currency;
|
return frappe.boot.sysdefaults.currency;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user