Planned Start Date added to Production Planning Tool

This commit is contained in:
Neil Trini Lasrado 2015-07-07 18:14:43 +05:30
parent 6224cfc414
commit dcef448f1e
2 changed files with 10 additions and 3 deletions

View File

@ -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",

View File

@ -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