Fixed minor issue

This commit is contained in:
Nabin Hait 2018-03-14 13:32:14 +05:30
parent f5ad339cae
commit 363cedde76

View File

@ -53,8 +53,8 @@ frappe.ui.form.on("Sales Order Item", {
if (frm.doc.delivery_date) {
row.delivery_date = frm.doc.delivery_date;
refresh_field("delivery_date", cdn, "items");
} else if((frm.doc.items || []).length > 1) {
this.frm.script_manager.copy_from_first_row("items", row, ["delivery_date"]);
} else {
frm.script_manager.copy_from_first_row("items", row, ["delivery_date"]);
}
},
delivery_date: function(frm, cdt, cdn) {