Sales invoice item amount custom script

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", "نسبة_انجاز_الاعمال", (frm, cdt, cdn) => {
var d = locals[cdt][cdn];
   frappe.model.set_value("amount", d.qty*d.نسبة_انجاز_الاعمال*d.rate) ;
});
1 Like

There’s a response on Custom script for sales invoice item not working

this is a community where people volunteer to help whenever they can and want to, if you are demanding help, maybe you can pay developers to do the work so that it will get done when “you” want it.

  • you created atleast 3 threads with same issue, maybe keep it to single post so that poeple who responded to your issues knows how its going.
2 Likes