Friday, 22 May 2015

Update all child record using for loop

script example:


frappe.ui.form.on("Sales Invoice", "onload", function(frm) {
   for(i=0;i<frm.doc.entries.length;i++){
        frm.doc.entries[i].batch_copy = frm.doc.entries[i].batch_no;
    }
});

No comments:

Post a Comment