mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 04:45:09 +00:00
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) => {
|
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"),
|
||||||
|
|||||||
Reference in New Issue
Block a user