From 58a6bbcf6d95f59821484ff29b585c10529a0fe4 Mon Sep 17 00:00:00 2001 From: Vishal Dhayagude Date: Sun, 18 Jun 2023 23:00:01 +0530 Subject: [PATCH] fix: unsupported operand type(s) for //: 'float' and 'NoneType' for POS Barcode search (#35710) --- erpnext/selling/page/point_of_sale/point_of_sale.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 6ccf45f476c..6744a5d49e7 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.py +++ b/erpnext/selling/page/point_of_sale/point_of_sale.py @@ -49,7 +49,6 @@ def search_by_term(search_term, warehouse, price_list): ) item_stock_qty, is_stock_item = get_stock_availability(item_code, warehouse) - item_stock_qty = item_stock_qty // item.get("conversion_factor") item_stock_qty = item_stock_qty // item.get("conversion_factor", 1) item.update({"actual_qty": item_stock_qty}) @@ -59,7 +58,7 @@ def search_by_term(search_term, warehouse, price_list): "price_list": price_list, "item_code": item_code, }, - fields=["uom", "stock_uom", "currency", "price_list_rate"], + fields=["uom", "currency", "price_list_rate"], ) def __sort(p):