fix: pos closed dialog on pos closing entry (backport #46881) (#46882)

fix: pos closed dialog on pos closing entry (#46881)

(cherry picked from commit 21954b9f9c)

Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
mergify[bot]
2025-04-06 21:32:17 +05:30
committed by GitHub
parent 79e8bfe213
commit c1fe8f6000

View File

@@ -151,7 +151,8 @@ erpnext.PointOfSale.Controller = class {
});
frappe.realtime.on(`poe_${this.pos_opening}_closed`, (data) => {
if (data) {
const route = frappe.get_route_str();
if (data && route == "point-of-sale") {
frappe.dom.freeze();
frappe.msgprint({
title: __("POS Closed"),