fix: Fetch cart setting from argument

This commit is contained in:
marination
2020-06-15 12:00:16 +05:30
parent 821606f001
commit 0a31e2ea92

View File

@@ -266,7 +266,7 @@ def get_next_attribute_and_values(item_code, selected_attributes):
else:
product_info = None
product_info["allow_items_not_in_stock"] = cint(frappe.db.get_singles_value("Shopping Cart Settings", "allow_items_not_in_stock"))
product_info["allow_items_not_in_stock"] = cint(data.cart_settings.allow_items_not_in_stock)
return {
'next_attribute': next_attribute,