Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Adding total quantity in Delivery Note (ERPNEXT)
cur_frm.cscript.custom_validate = function() {
var sum = 0;
$.each(cur_frm.doc.delivery_note_details, function(i, d) { sum += d.qty });
cur_frm.set_value("total_qty", sum);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment