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;
}
});
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