From 4cdd7aebbe478bb0d89687a7164e4cc681b8e8ac Mon Sep 17 00:00:00 2001 From: Tufan Kaynak <31142607+toofun666@users.noreply.github.com> Date: Sun, 12 Jan 2025 00:09:34 +0300 Subject: [PATCH] Transfer Delivery Date of Sales Order Item to Material Request Item as Required By Item Delivery Date on Sales Order is not transferred to Material Request Item Required By date --- erpnext/selling/doctype/sales_order/sales_order.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index 0483feae2d8e..e6c6a88b46ed 100755 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -884,7 +884,8 @@ def update_item(source, target, source_parent): }, "Sales Order Item": { "doctype": "Material Request Item", - "field_map": {"name": "sales_order_item", "parent": "sales_order"}, + "field_map": {"name": "sales_order_item", "parent": "sales_order", + "delivery_date": "required_by"}, "condition": lambda item: not frappe.db.exists( "Product Bundle", {"name": item.item_code, "disabled": 0} )