We want to add Amount (=Qty x rate) field in Opportunity Item. Kindly advise how can we add this (where to add the formula).
Could someone suggest what would be the custom script.
Thank you in advance.
We want to add Amount (=Qty x rate) field in Opportunity Item. Kindly advise how can we add this (where to add the formula).
Could someone suggest what would be the custom script.
Thank you in advance.
@Daven_Shah, why not use the Quotation
?
We want to update Opportunity Value (Custom field). By which we prioritize opportunities.
@Daven_Shah
frappe.ui.form.on("Opportunity Item", "qty", function(frm, cdt, cdn){
var d = locals[cdt][cdn];
frappe.model.set_value(cdt, cdn, "amount", d.qty * d.amount);
});
Setup > Customize > Custom Script > New
Doctype = Opportunity