[#1738] Required Date field in po_details auto-copied in all rows
diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.js b/erpnext/buying/doctype/purchase_order/purchase_order.js
index 8c2b1a2..aab48a2 100644
--- a/erpnext/buying/doctype/purchase_order/purchase_order.js
+++ b/erpnext/buying/doctype/purchase_order/purchase_order.js
@@ -105,6 +105,11 @@
 		this.get_terms();
 	},
 
+	po_details_add: function(doc, cdt, cdn) {
+		var row = frappe.get_doc(cdt, cdn);
+		this.frm.script_manager.copy_from_first_row("po_details", row, ["schedule_date"]);
+	}
+
 });
 
 // for backward compatibility: combine new and previous states
@@ -209,4 +214,8 @@
 cur_frm.cscript.send_sms = function() {
 	frappe.require("assets/erpnext/js/sms_manager.js");
 	var sms_man = new SMSManager(cur_frm.doc);
-}
\ No newline at end of file
+}
+
+cur_frm.cscript.schedule_date = function(doc, cdt, cdn) {
+	cur_frm.cscript.copy_account_in_all_row(doc, cdt, cdn, "schedule_date");
+}