fix: Freeze Screen on load invoices on POS Closing Entry

(cherry picked from commit 486d396174)
This commit is contained in:
HarryPaulo
2024-07-24 08:57:27 -03:00
committed by Mergify
parent a05d6de2be
commit 725b6beff3

View File

@@ -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(),
]);
}
},