fix: wrong field mapping

(cherry picked from commit 8411e2e01f)
This commit is contained in:
Mihir Kandoi
2025-03-13 20:19:47 +05:30
committed by Mergify
parent 2f3dcc2137
commit be3e083e7d
2 changed files with 2 additions and 2 deletions

View File

@@ -813,7 +813,7 @@ def create_pick_list(source_name, target_doc=None):
},
"Material Request Item": {
"doctype": "Pick List Item",
"field_map": {"name": "material_request_item", "qty": "stock_qty"},
"field_map": {"name": "material_request_item", "stock_qty": "stock_qty"},
},
},
target_doc,

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: