[Fix] Pricing rule applying only on item groups defined in POS profile
This commit is contained in:
parent
9d6900bd3b
commit
33326fe90e
@ -151,11 +151,6 @@ def get_items_list(pos_profile):
|
|||||||
|
|
||||||
def get_item_groups(pos_profile):
|
def get_item_groups(pos_profile):
|
||||||
item_group_dict = {}
|
item_group_dict = {}
|
||||||
if pos_profile.get('item_groups'):
|
|
||||||
item_groups = []
|
|
||||||
for d in pos_profile.get('item_groups'):
|
|
||||||
item_groups.extend(get_child_nodes('Item Group', d.item_group))
|
|
||||||
else:
|
|
||||||
item_groups = frappe.db.sql("""Select name,
|
item_groups = frappe.db.sql("""Select name,
|
||||||
lft, rgt from `tabItem Group` order by lft""", as_dict=1)
|
lft, rgt from `tabItem Group` order by lft""", as_dict=1)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user