I am a newbie , I want to know in which programming language the custom script is written ?
Searched few examples and created some conditional fields , but I am not able to make calculated fields .
Please someone help me ,
I created four custom fields in a doctype , now i want to add the values of the first three fields and display it in the fourth field ? All four fields are in the same doctype . Please help me by giving the syntax and functions to be used .
Below is my script
cur_frm.add_fetch("edger", "blocker", "finisher", "total");
frappe.ui.form.on("Product master", "total", function(frm, doctype, name) {
cur_frm.cscript.custom_validate = function(doc) {
var edger=edger;
var blocker=blocker;
var finisher=finisher;
var total=0;
doc.total=edger+blocker+finisher;
}
});