Skip to content

Commit

Permalink
Merge pull request #44277 from aerele/pos-item-group-filter
Browse files Browse the repository at this point in the history
fix: filter with item group only if it is mentioned in pos profile
  • Loading branch information
ruthra-kumar authored Nov 22, 2024
2 parents c3e5d63 + 0964107 commit 2a31807
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/selling/page/point_of_sale/point_of_sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def __sort(p):
def filter_result_items(result, pos_profile):
if result and result.get("items"):
pos_item_groups = frappe.db.get_all("POS Item Group", {"parent": pos_profile}, pluck="item_group")
if not pos_item_groups:
return
result["items"] = [item for item in result.get("items") if item.get("item_group") in pos_item_groups]


Expand Down

0 comments on commit 2a31807

Please sign in to comment.