mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 20:18:45 +00:00
fix: UOM conversion error when creating pick list from material transfer request
(cherry picked from commit 840ea070a9)
This commit is contained in:
@@ -838,7 +838,7 @@ def get_items_with_location_and_quantity(item_doc, item_location_map, docstatus)
|
|||||||
item_location = frappe._dict(item_location)
|
item_location = frappe._dict(item_location)
|
||||||
|
|
||||||
stock_qty = remaining_stock_qty if item_location.qty >= remaining_stock_qty else item_location.qty
|
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")
|
uom_must_be_whole_number = frappe.get_cached_value("UOM", item_doc.uom, "must_be_whole_number")
|
||||||
if uom_must_be_whole_number:
|
if uom_must_be_whole_number:
|
||||||
|
|||||||
Reference in New Issue
Block a user