Skip to content

Commit

Permalink
Merge pull request #1 from Framras/toofun666-patch-1
Browse files Browse the repository at this point in the history
Transfer Delivery Date of Sales Order Item to Material Request Item a…
  • Loading branch information
toofun666 authored Jan 11, 2025
2 parents c6c7d78 + 4cdd7ae commit 695b8cd
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 695b8cd

Please sign in to comment.