diff --git a/erpnext/templates/pages/product_search.py b/erpnext/templates/pages/product_search.py index ff1dd7d6b6e..cf1876c6743 100644 --- a/erpnext/templates/pages/product_search.py +++ b/erpnext/templates/pages/product_search.py @@ -18,9 +18,10 @@ def get_product_list(search=None, start=0, limit=12): # limit = 12 because we show 12 items in the grid view # base query - query = """select I.name, I.item_name, I.item_code, I.route, I.website_image, I.thumbnail, I.item_group, - I.description, I.web_long_description as website_description, - case when (S.actual_qty - S.reserved_qty) > 0 then 1 else 0 end as in_stock + 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.is_stock_item, + case when (S.actual_qty - S.reserved_qty) > 0 then 1 else 0 end as in_stock, I.website_warehouse, + I.has_batch_no from `tabItem` I left join tabBin S on I.item_code = S.item_code and I.website_warehouse = S.warehouse where (I.show_in_website = 1 or I.show_variant_in_website = 1)