fix for the non stock items for the shopping cart (#12294)

This commit is contained in:
Manas Solanki
2018-01-05 12:47:20 +05:30
committed by Nabin Hait
parent 171157f1b3
commit a521efc990
5 changed files with 7 additions and 7 deletions

View File

@@ -30,10 +30,10 @@ def get_product_info_for_website(item_code):
product_info = {
"price": price,
"stock_qty": stock_status.stock_qty,
"in_stock": stock_status.in_stock,
"in_stock": stock_status.in_stock if stock_status.is_stock_item else 1,
"qty": 0,
"uom": frappe.db.get_value("Item", item_code, "stock_uom"),
"show_stock_qty": show_quantity_in_website()
"show_stock_qty": show_quantity_in_website() if stock_status.is_stock_item else 0
}
if product_info["price"]: