auto populate all rows (#10090)

This commit is contained in:
tundebabzy 2017-07-27 07:17:56 +01:00 committed by Nabin Hait
parent 84227a6c54
commit 296603a861

View File

@ -36,9 +36,14 @@ frappe.ui.form.on("Material Request Item", {
frappe.msgprint(__("Warning: Material Requested Qty is less than Minimum Order Qty"));
}
},
item_code: function(frm, doctype, name) {
frm.script_manager.copy_from_first_row('items', frm.selected_doc,
'schedule_date');
},
schedule_date: function(frm, cdt, cdn) {
erpnext.utils.copy_value_in_all_row(frm.doc, cdt, cdn, "items", "schedule_date");
}
});