fix: typeerror on new sites (#38692)
(cherry picked from commit fa2d33cb50753449cc8f4218c94d07ed99f2af03)
This commit is contained in:
parent
576ff49943
commit
9239e735ad
@ -8,7 +8,7 @@ $.extend(erpnext, {
|
||||
if(!company && cur_frm)
|
||||
company = cur_frm.doc.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
|
||||
return frappe.boot.sysdefaults.currency;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user