From e72bde51591d89bf4b1d871bc5c53c3205663cf0 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 12 Apr 2018 13:26:11 +0530 Subject: [PATCH] Removed expired items from the list of POS items (#13582) --- erpnext/selling/page/point_of_sale/point_of_sale.py | 1 + 1 file changed, 1 insertion(+) 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 8654287208e..31cb38b2c1c 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.py +++ b/erpnext/selling/page/point_of_sale/point_of_sale.py @@ -49,6 +49,7 @@ def get_items(start, page_length, price_list, item_group, search_value="", pos_p where i.disabled = 0 and i.has_variants = 0 and i.is_sales_item = 1 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} limit {start}, {page_length}""".format(start=start, page_length=page_length, lft=lft, rgt=rgt, condition=condition),