chore: Remove commented out code
This commit is contained in:
parent
4f5a0b8941
commit
29c576e144
@ -81,25 +81,9 @@ class ItemVariantsCacheManager:
|
|||||||
)
|
)
|
||||||
item_variants_data = query.run()
|
item_variants_data = query.run()
|
||||||
|
|
||||||
# item_variants_data = frappe.get_all(
|
|
||||||
# 'Item Variant Attribute',
|
|
||||||
# {'variant_of': parent_item_code},
|
|
||||||
# ['parent', 'attribute', 'attribute_value'],
|
|
||||||
# order_by='name',
|
|
||||||
# as_list=1
|
|
||||||
# )
|
|
||||||
|
|
||||||
# disabled_items = set(
|
|
||||||
# [i.name for i in frappe.db.get_all('Item', {'disabled': 1})]
|
|
||||||
# )
|
|
||||||
|
|
||||||
attribute_value_item_map = frappe._dict()
|
attribute_value_item_map = frappe._dict()
|
||||||
item_attribute_value_map = frappe._dict()
|
item_attribute_value_map = frappe._dict()
|
||||||
|
|
||||||
# dont consider variants that are disabled
|
|
||||||
# pull all other variants
|
|
||||||
# item_variants_data = [r for r in item_variants_data if r[0] not in disabled_items]
|
|
||||||
|
|
||||||
for row in item_variants_data:
|
for row in item_variants_data:
|
||||||
item_code, attribute, attribute_value = row
|
item_code, attribute, attribute_value = row
|
||||||
# (attr, value) => [item1, item2]
|
# (attr, value) => [item1, item2]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user