From ae276bcaa16f5f4755c75d60f5fcff20de3df5ff Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 21 Jun 2018 13:18:01 +0530 Subject: [PATCH] Don't allow to sale asset item from POS (#14623) --- erpnext/selling/page/point_of_sale/point_of_sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.py b/erpnext/selling/page/point_of_sale/point_of_sale.py index 635e937289e..c25bcd30df9 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.py +++ b/erpnext/selling/page/point_of_sale/point_of_sale.py @@ -50,7 +50,7 @@ def get_items(start, page_length, price_list, item_group, search_value="", pos_p ON (item_det.item_code=i.name or item_det.item_code=i.variant_of) where - i.disabled = 0 and i.has_variants = 0 and i.is_sales_item = 1 + i.disabled = 0 and i.has_variants = 0 and i.is_sales_item = 1 and ifnull(i.is_fixed_asset, 0) = 0 and i.item_group in (select name from `tabItem Group` where lft >= {lft} and rgt <= {rgt}) and ifnull(i.end_of_life, curdate()) >= curdate() and {condition}