From 5b36f12596ee699b5f99b36b0b51d9b9b8a166ee Mon Sep 17 00:00:00 2001 From: pandiyan Date: Sat, 18 Jul 2026 13:36:48 +0530 Subject: [PATCH] fix: exclude transferred_qty from work order item to pick list item mapping get_mapped_doc copies same-named fields by default. work order item's transferred_qty (cumulative across the whole work order) was leaking into the new pick list item's transferred_qty (meant to track how much of that pick list row has been converted into a stock entry, starting at 0). the leaked value then got subtracted again in get_pending_transfer_stock_qty(), so every pick list after the first under-transferred raw materials by whatever was already recorded on the work order, driving material_transferred_for_manufacturing towards zero across repeated partial pick-list/finish cycles. fixes #57236, related to #56596 --- erpnext/manufacturing/doctype/work_order/mapper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/manufacturing/doctype/work_order/mapper.py b/erpnext/manufacturing/doctype/work_order/mapper.py index 12f463f9e2b..8a75b834976 100644 --- a/erpnext/manufacturing/doctype/work_order/mapper.py +++ b/erpnext/manufacturing/doctype/work_order/mapper.py @@ -488,6 +488,7 @@ def _pick_list_mapping(postprocess): "Work Order": {"doctype": "Pick List", "validation": {"docstatus": ["=", 1]}}, "Work Order Item": { "doctype": "Pick List Item", + "field_no_map": ["transferred_qty"], "postprocess": postprocess, "condition": lambda doc: abs(doc.transferred_qty) < abs(doc.required_qty), },