fix else condition (#13295)

This commit is contained in:
Shreya Shah 2018-03-13 18:12:19 +05:30 committed by Nabin Hait
parent 9a398b4742
commit 7acc8cb747

View File

@ -53,7 +53,7 @@ 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 {
} else if((frm.doc.items || []).length > 1) {
this.frm.script_manager.copy_from_first_row("items", row, ["delivery_date"]);
}
},