fix: default pos conversion factor set to 1 (#34437)

This commit is contained in:
Shram Kadia 2023-03-21 15:51:18 +05:30 committed by GitHub
parent 59c2e7ec3e
commit 08fc686513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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, 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}) item.update({"actual_qty": item_stock_qty})
price = frappe.get_list( price = frappe.get_list(