From 08fc686513bf4c6e4980d16a8a67cab731be1fd1 Mon Sep 17 00:00:00 2001 From: Shram Kadia <65490105+Shram007@users.noreply.github.com> Date: Tue, 21 Mar 2023 15:51:18 +0530 Subject: [PATCH] fix: default pos conversion factor set to 1 (#34437) --- 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 158ac1d049..657623d18f 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.py +++ b/erpnext/selling/page/point_of_sale/point_of_sale.py @@ -55,7 +55,7 @@ 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}) price = frappe.get_list(