can you help me on this?
Preformatted text@H_nh_Nguy_n
let total = 0;
let items = frm.doc.[child table field name];
for (let i = 0; i < items.length; i++) {
total += items[i].[field_name to sum up];
}
// Total Amounts Section
frm.set_value([parent doctpe field name], total);
Can I call the sum in other child table?
When ever i apply this my browser freezes …is there something that i need to change?
Removed the amount method and worked, although this time round does not display the total_amount on the parent table
