From 59a706585ce0a4bde85bfebc5d30ab063fbd7972 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Wed, 4 Feb 2015 11:44:24 +0530 Subject: [PATCH] actual start and end date made blank if islocal --- .../doctype/production_order/production_order.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/erpnext/manufacturing/doctype/production_order/production_order.js b/erpnext/manufacturing/doctype/production_order/production_order.js index d7dc79a953..f7ebaa95d9 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.js +++ b/erpnext/manufacturing/doctype/production_order/production_order.js @@ -7,6 +7,13 @@ $.extend(cur_frm.cscript, { cfn_set_fields(doc, dt, dn); this.frm.add_fetch("sales_order", "delivery_date", "expected_delivery_date"); + + if(doc.__islocal) { + cur_frm.set_value({ + "actual_start_date": "", + "actual_end_date": "" + }); + } }, before_submit: function() {