fix: UOM conversion error when creating pick list from material transfer request

(cherry picked from commit 840ea070a9)
This commit is contained in:
Mihir Kandoi
2025-03-13 18:33:39 +05:30
committed by Mergify
parent 99f59c0410
commit 2f3dcc2137

View File

@@ -838,7 +838,7 @@ def get_items_with_location_and_quantity(item_doc, item_location_map, docstatus)
item_location = frappe._dict(item_location)
stock_qty = remaining_stock_qty if item_location.qty >= remaining_stock_qty else item_location.qty
qty = stock_qty / (item_doc.conversion_factor or 1)
qty = stock_qty * (item_doc.conversion_factor or 1)
uom_must_be_whole_number = frappe.get_cached_value("UOM", item_doc.uom, "must_be_whole_number")
if uom_must_be_whole_number: