From 55464c79c4a068146b7254f57c9575b44c3966ac Mon Sep 17 00:00:00 2001 From: ljain112 Date: Wed, 25 Sep 2024 18:24:42 +0530 Subject: [PATCH] fix: include parent item group in query (cherry picked from commit ad0090068dc9dc0325dea180ff38e2c2cc86a4a6) --- erpnext/accounts/doctype/pos_invoice/pos_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/doctype/pos_invoice/pos_invoice.py b/erpnext/accounts/doctype/pos_invoice/pos_invoice.py index 742af7dd0fe..20316e3394b 100644 --- a/erpnext/accounts/doctype/pos_invoice/pos_invoice.py +++ b/erpnext/accounts/doctype/pos_invoice/pos_invoice.py @@ -862,6 +862,7 @@ def get_item_group(pos_profile): if pos_profile.get("item_groups"): # Get items based on the item groups defined in the POS profile for row in pos_profile.get("item_groups"): + item_groups.append(row.item_group) item_groups.extend(get_descendants_of("Item Group", row.item_group)) return list(set(item_groups))