From daabb42ad7eaac644eef7d797b83c9f3dfdc8e75 Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Sat, 3 Jan 2026 11:53:40 +0530 Subject: [PATCH 1/2] fix(pos): remove full screen feature --- .../page/point_of_sale/pos_controller.js | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/erpnext/selling/page/point_of_sale/pos_controller.js b/erpnext/selling/page/point_of_sale/pos_controller.js index 32ae30ad303..41b89259eca 100644 --- a/erpnext/selling/page/point_of_sale/pos_controller.js +++ b/erpnext/selling/page/point_of_sale/pos_controller.js @@ -258,33 +258,6 @@ erpnext.PointOfSale.Controller = class { this.page.clear_icons(); this.page.set_primary_action(__("New Invoice"), this.new_invoice_event.bind(this)); this.page.set_secondary_action(__("Recent Orders"), this.toggle_recent_order.bind(this)); - this.page.add_action_icon( - "fullscreen", - this.bind_fullscreen_events.bind(this), - "btn-fullscreen", - "Fullscreen" - ); - this.page.add_action_icon( - "minimize", - this.bind_fullscreen_events.bind(this), - "btn-minimize hide", - "Minimize" - ); - } - - bind_fullscreen_events() { - if (!document.fullscreenElement) { - document.documentElement.requestFullscreen(); - this.toggle_fullscreen_btn(".btn-minimize", ".btn-fullscreen"); - } else if (document.exitFullscreen) { - document.exitFullscreen(); - this.toggle_fullscreen_btn(".btn-fullscreen", ".btn-minimize"); - } - } - - toggle_fullscreen_btn(show, hide) { - this.page.page_actions.find(hide).addClass("hide"); - this.page.page_actions.find(show).removeClass("hide"); } open_form_view() { From 84612d676b8c0ca5398a59a356df3036aa00024a Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Mon, 5 Jan 2026 13:25:31 +0530 Subject: [PATCH 2/2] fix(pos): hide sidebar --- erpnext/selling/page/point_of_sale/point_of_sale.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.js b/erpnext/selling/page/point_of_sale/point_of_sale.js index 6e4d1d0a373..b8f83910257 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.js +++ b/erpnext/selling/page/point_of_sale/point_of_sale.js @@ -5,6 +5,7 @@ frappe.pages["point-of-sale"].on_page_load = function (wrapper) { parent: wrapper, title: __("Point of Sale"), single_column: true, + hide_sidebar: true, }); frappe.require("point-of-sale.bundle.js", function () {