Skip to content

Commit

Permalink
Transfer Delivery Date of Sales Order Item to Material Request Item a…
Browse files Browse the repository at this point in the history
…s Required By

Item Delivery Date on Sales Order is not transferred to Material Request Item Required By date
  • Loading branch information
toofun666 authored Jan 11, 2025
1 parent c6c7d78 commit 4cdd7ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)
Expand Down

0 comments on commit 4cdd7ae

Please sign in to comment.