From e9cf8937cd4a6c00666bf5f016b0647121d9838c Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Wed, 28 Aug 2024 12:21:22 +0530 Subject: [PATCH] fix: typeerror on Payment Entry --- erpnext/accounts/doctype/payment_entry/payment_entry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.js b/erpnext/accounts/doctype/payment_entry/payment_entry.js index bb3966bb95b0..7dc7ccc41344 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.js +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.js @@ -305,7 +305,7 @@ frappe.ui.form.on("Payment Entry", { set_dynamic_labels: function (frm) { var company_currency = frm.doc.company - ? frappe.get_doc(":Company", frm.doc.company).default_currency + ? frappe.get_doc(":Company", frm.doc.company)?.default_currency : ""; frm.set_currency_labels(