From 5643385c22d77d55f7b374820d29375bb70bb3f5 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Fri, 31 Jan 2025 11:26:01 +0530 Subject: [PATCH] fix: attribute 'msgbox' not found in sales invoice.js --- erpnext/accounts/doctype/sales_invoice/sales_invoice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 5469dfa8794..ace2d3ef6a6 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -65,7 +65,7 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends ( refresh(doc, dt, dn) { const me = this; super.refresh(); - if (this.frm.msgbox && this.frm.msgbox.$wrapper.is(":visible")) { + if (this.frm?.msgbox && this.frm.msgbox.$wrapper.is(":visible")) { // hide new msgbox this.frm.msgbox.hide(); }