fix: stock error for service item

(cherry picked from commit 32965f1af9)
This commit is contained in:
Rohit Waghchaure
2023-06-20 16:27:23 +05:30
committed by Mergify
parent 95e3dc9b81
commit 2bbea63de1
2 changed files with 5 additions and 2 deletions

View File

@@ -162,6 +162,7 @@ def get_next_attribute_and_values(item_code, selected_attributes):
product_info = get_item_variant_price_dict(exact_match[0], cart_settings)
if product_info:
product_info["is_stock_item"] = frappe.get_cached_value("Item", exact_match[0], "is_stock_item")
product_info["allow_items_not_in_stock"] = cint(cart_settings.allow_items_not_in_stock)
else:
product_info = None