mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-29 17:11:33 +02:00
fix(material request): mapping Sales Order Item Delivery Date to Mate… (#45227)
* fix(material request): mapping Sales Order Item Delivery Date to Material Request Item Required By
as mentioned in https://discuss.frappe.io/t/item-delivery-date-on-sales-order-is-not-transferred-to-material-request-item-required-by-date/140479
fixing
When you create a Material Request directly on the Sales Order via → Create → Material Request, Delivery Date on Sales Order Item is not transferred to Material Request Item Required By date.
* fix(linters): meaningless linters formatting message applied
In order to pass the linters test which I find meaningless as it asks for the comma after the last item in a dictionary data type
* fix(linters): formatting code for linters pass
Linters formatting applied
(cherry picked from commit 42edb9f5b1)
Co-authored-by: Tufan Kaynak <31142607+toofun666@users.noreply.github.com>
This commit is contained in:
@@ -872,7 +872,11 @@ def make_material_request(source_name, target_doc=None):
|
|||||||
},
|
},
|
||||||
"Sales Order Item": {
|
"Sales Order Item": {
|
||||||
"doctype": "Material Request 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(
|
"condition": lambda item: not frappe.db.exists(
|
||||||
"Product Bundle", {"name": item.item_code, "disabled": 0}
|
"Product Bundle", {"name": item.item_code, "disabled": 0}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user