Skip to content

Commit

Permalink
fix: include parent item group in query
Browse files Browse the repository at this point in the history
  • Loading branch information
ljain112 committed Sep 25, 2024
1 parent 9998aa2 commit ad00900
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/accounts/doctype/pos_invoice/pos_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,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))

0 comments on commit ad00900

Please sign in to comment.