Skip to content

Commit

Permalink
fix: filter with item group only if it is mentioned in pos profile
Browse files Browse the repository at this point in the history
(cherry picked from commit 0964107)
  • Loading branch information
venkat102 authored and mergify[bot] committed Nov 22, 2024
1 parent c0e6f3f commit a439862
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 a439862

Please sign in to comment.