diff --git a/erpnext/stock/reorder_item.py b/erpnext/stock/reorder_item.py index ade6121700..8da9f110f0 100644 --- a/erpnext/stock/reorder_item.py +++ b/erpnext/stock/reorder_item.py @@ -122,7 +122,7 @@ def create_material_request(material_requests): "company": company, "transaction_date": nowdate(), "material_request_type": "Material Transfer" if request_type=="Transfer" else request_type, - "schedule_date": add_days(nowdate(),cint(item.lead_time_days)) + "schedule_date": add_days(nowdate(), cint(items[0].lead_time_days)) }) for d in items: