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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user