i need to change amount calculation for each item to be
amount=rate * qty * custom_field
i tried that but not working any help??
frappe.ui.form.on("Sales Invoice Item", "custom_field", (frm, cdt, cdn) => {
var d = locals[cdt][cdn];
frappe.model.set_value("amount",d.custom_field*d.rate*d.qty);
});
why not working what’s going wrong?
@max_morais_dmm