Planned Start Date added to Production Planning Tool
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 7134938..2acdbb7 100644
--- a/erpnext/manufacturing/doctype/production_plan_item/production_plan_item.json
+++ b/erpnext/manufacturing/doctype/production_plan_item/production_plan_item.json
@@ -43,6 +43,14 @@
"width": "100px"
},
{
+ "default": "now",
+ "fieldname": "planned_start_date",
+ "fieldtype": "Datetime",
+ "label": "Planned Start Date",
+ "permlevel": 0,
+ "precision": ""
+ },
+ {
"fieldname": "sales_order",
"fieldtype": "Link",
"in_list_view": 1,
@@ -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 f5c951f..df5a0e1 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 @@
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 @@
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