diff --git a/erpnext/manufacturing/doctype/production_plan_item/production_plan_item.json b/erpnext/manufacturing/doctype/production_plan_item/production_plan_item.json index 71349385df..2acdbb74d9 100644 --- a/erpnext/manufacturing/doctype/production_plan_item/production_plan_item.json +++ b/erpnext/manufacturing/doctype/production_plan_item/production_plan_item.json @@ -42,6 +42,14 @@ "reqd": 1, "width": "100px" }, + { + "default": "now", + "fieldname": "planned_start_date", + "fieldtype": "Datetime", + "label": "Planned Start Date", + "permlevel": 0, + "precision": "" + }, { "fieldname": "sales_order", "fieldtype": "Link", @@ -104,7 +112,7 @@ ], "idx": 1, "istable": 1, - "modified": "2015-02-19 01:07:00.936590", + "modified": "2015-07-07 07:52:40.883761", "modified_by": "Administrator", "module": "Manufacturing", "name": "Production Plan Item", diff --git a/erpnext/manufacturing/doctype/production_planning_tool/production_planning_tool.py b/erpnext/manufacturing/doctype/production_planning_tool/production_planning_tool.py index f5c951ff96..df5a0e18b9 100644 --- a/erpnext/manufacturing/doctype/production_planning_tool/production_planning_tool.py +++ b/erpnext/manufacturing/doctype/production_planning_tool/production_planning_tool.py @@ -153,6 +153,7 @@ class ProductionPlanningTool(Document): pi.bom_no = item_details and item_details[0][2] or '' pi.so_pending_qty = flt(p['pending_qty']) pi.planned_qty = flt(p['pending_qty']) + pi.planned_start_date = now() def validate_data(self): self.validate_company() @@ -211,8 +212,6 @@ class ProductionPlanningTool(Document): for key in items: pro = frappe.new_doc("Production Order") pro.update(items[key]) - - pro.planned_start_date = now() pro.set_production_order_operations() frappe.flags.mute_messages = True