From 725b6beff3a6c34e979a53b9527c82aa84d65cb5 Mon Sep 17 00:00:00 2001 From: HarryPaulo Date: Wed, 24 Jul 2024 08:57:27 -0300 Subject: [PATCH] fix: Freeze Screen on load invoices on POS Closing Entry (cherry picked from commit 486d396174216c83c00f0218dda94aff803b8693) --- erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js b/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js index 715800a7c16..e6088b0529e 100644 --- a/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js +++ b/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js @@ -80,8 +80,10 @@ frappe.ui.form.on("POS Closing Entry", { ) { reset_values(frm); frappe.run_serially([ + () => frappe.dom.freeze(__("Loading Invoices! Please Wait...")), () => frm.trigger("set_opening_amounts"), () => frm.trigger("get_pos_invoices"), + () => frappe.dom.unfreeze(), ]); } },