Skip to content

Commit

Permalink
fix: default pos conversion factor set to 1 (#34437)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shram007 authored Mar 21, 2023
1 parent 59c2e7e commit 08fc686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/selling/page/point_of_sale/point_of_sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 08fc686

Please sign in to comment.