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

@@ -82,7 +82,7 @@ def get_product_list_for_group(product_group=None, start=0, limit=10, search=Non
# base query
query = """select I.name, I.item_name, I.item_code, I.route, I.image, I.website_image, I.thumbnail, I.item_group,
I.description, I.web_long_description as website_description,
I.description, I.web_long_description as website_description, I.is_stock_item,
case when (S.actual_qty - S.reserved_qty) > 0 then 1 else 0 end as in_stock
from `tabItem` I
left join tabBin S on I.item_code = S.item_code and I.website_warehouse = S.warehouse