diff --git a/erpnext/accounts/doctype/pos_profile/pos_profile.json b/erpnext/accounts/doctype/pos_profile/pos_profile.json index e3dad450805..093e343c9c7 100644 --- a/erpnext/accounts/doctype/pos_profile/pos_profile.json +++ b/erpnext/accounts/doctype/pos_profile/pos_profile.json @@ -63,6 +63,8 @@ "allow_rate_change", "column_break_hwfg", "allow_discount_change", + "column_break_egpi", + "allow_warehouse_change", "section_break_15", "applicable_for_users", "section_break_23", @@ -542,6 +544,16 @@ { "fieldname": "column_break_hwfg", "fieldtype": "Column Break" + }, + { + "fieldname": "column_break_egpi", + "fieldtype": "Column Break" + }, + { + "default": "0", + "fieldname": "allow_warehouse_change", + "fieldtype": "Check", + "label": "Allow User to Edit Warehouse" } ], "grid_page_length": 50, @@ -570,7 +582,7 @@ "link_fieldname": "pos_profile" } ], - "modified": "2026-02-05 03:38:13.216277", + "modified": "2026-02-05 04:36:40.757162", "modified_by": "Administrator", "module": "Accounts", "name": "POS Profile", diff --git a/erpnext/accounts/doctype/pos_profile/pos_profile.py b/erpnext/accounts/doctype/pos_profile/pos_profile.py index 477498c3ee8..128d77589eb 100644 --- a/erpnext/accounts/doctype/pos_profile/pos_profile.py +++ b/erpnext/accounts/doctype/pos_profile/pos_profile.py @@ -34,6 +34,7 @@ class POSProfile(Document): allow_discount_change: DF.Check allow_partial_payment: DF.Check allow_rate_change: DF.Check + allow_warehouse_change: DF.Check applicable_for_users: DF.Table[POSProfileUser] apply_discount_on: DF.Literal["Grand Total", "Net Total"] auto_add_item_to_cart: DF.Check diff --git a/erpnext/selling/page/point_of_sale/pos_item_details.js b/erpnext/selling/page/point_of_sale/pos_item_details.js index 75f6015980d..51ef0df8c2c 100644 --- a/erpnext/selling/page/point_of_sale/pos_item_details.js +++ b/erpnext/selling/page/point_of_sale/pos_item_details.js @@ -5,6 +5,7 @@ erpnext.PointOfSale.ItemDetails = class { this.hide_images = settings.hide_images; this.allow_rate_change = settings.allow_rate_change; this.allow_discount_change = settings.allow_discount_change; + this.allow_warehouse_change = settings.allow_warehouse_change; this.current_item = {}; this.frm_doctype = settings.frm_doctype; @@ -287,6 +288,7 @@ erpnext.PointOfSale.ItemDetails = class { filters: { company: this.events.get_frm().doc.company, is_group: 0 }, }; }; + this.warehouse_control.df.read_only = !this.allow_warehouse_change; this.warehouse_control.refresh(); }