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

This commit is contained in:
Diptanil Saha
2025-04-06 21:26:14 +05:30
committed by GitHub
parent b4430a14a6
commit 21954b9f9c

View File

@@ -151,7 +151,8 @@ erpnext.PointOfSale.Controller = class {
}); });
frappe.realtime.on(`poe_${this.pos_opening}_closed`, (data) => { 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.dom.freeze();
frappe.msgprint({ frappe.msgprint({
title: __("POS Closed"), title: __("POS Closed"),