mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
Add missing fields in select, the same as in get_product_list_for_group (#14789)
This commit is contained in:
@@ -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
|
# limit = 12 because we show 12 items in the grid view
|
||||||
|
|
||||||
# base query
|
# base query
|
||||||
query = """select I.name, I.item_name, I.item_code, I.route, I.website_image, I.thumbnail, I.item_group,
|
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
|
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
|
from `tabItem` I
|
||||||
left join tabBin S on I.item_code = S.item_code and I.website_warehouse = S.warehouse
|
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)
|
where (I.show_in_website = 1 or I.show_variant_in_website = 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user