mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fix for the non stock items for the shopping cart (#12294)
This commit is contained in:
committed by
Nabin Hait
parent
171157f1b3
commit
a521efc990
@@ -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"]:
|
||||
|
||||
Reference in New Issue
Block a user