Hi, I am new to coding, here I want to make a code to calculate the probability value based on status of the deal. I already set the corresponding percentage linked to the deal status, so I only need to create script to calculate the probability value.
This code properly work for frappe desk custom client script, but it doesn’t work for Frappe CRM interface. Here attached is the reference image.
frappe.ui.form.on("CRM Deal", function(frm) {
//calculate probability value for each deal
frm.set_value("custom_probability_value",(frm.doc.custom_project_revenue * frm.doc.probability));
})
How do I make it worked for CRM’s custom form list code?
Thankyou in Advance