From dbccc588972de34f54433271f852adac9d414bff Mon Sep 17 00:00:00 2001 From: MohamedAliSmk Date: Mon, 9 Mar 2026 14:41:03 +0200 Subject: [PATCH 1/8] PN-27: Add brands filter to POS items - Add POS Brands Detail child table doctype for POS Profile - Add custom_brands_table custom field to POS Profile via fixtures - Add get_brands API and brand parameter to get_items/get_items_count - Add brand-aware filter handling in itemSearch store - Update ItemsSelector UI with dynamic brand/item_group tab switching - Add brand sort option with context-aware sort menu --- POS/src/components/sale/ItemsSelector.vue | 107 +++++++++-- POS/src/stores/itemSearch.js | 172 +++++++++++++++++- pos_next/api/items.py | 81 ++++++++- pos_next/api/pos_profile.py | 25 ++- pos_next/hooks.py | 3 +- .../doctype/pos_brands_detail/__init__.py | 0 .../pos_brands_detail/pos_brands_detail.json | 36 ++++ .../pos_brands_detail/pos_brands_detail.py | 9 + 8 files changed, 401 insertions(+), 32 deletions(-) create mode 100644 pos_next/pos_next/doctype/pos_brands_detail/__init__.py create mode 100644 pos_next/pos_next/doctype/pos_brands_detail/pos_brands_detail.json create mode 100644 pos_next/pos_next/doctype/pos_brands_detail/pos_brands_detail.py diff --git a/POS/src/components/sale/ItemsSelector.vue b/POS/src/components/sale/ItemsSelector.vue index dc7698ea..c1fb230e 100644 --- a/POS/src/components/sale/ItemsSelector.vue +++ b/POS/src/components/sale/ItemsSelector.vue @@ -4,10 +4,10 @@
@@ -201,7 +201,7 @@