Hi , i used below code to add it is adding but it is not allowing to save quotation please give me any correction of the code.
// to add two fields
frappe.ui.form.on("Quotation","refresh",function(frm, cdt, cdn){
var d = locals[cdt][cdn];
frappe.model.set_value(cdt, cdn, "grand_total", d.total+ d.erection_total_rs);
refresh_field("grand_total");
});
That because there is another function override this action, you need to make your event on saving also to override it
you can use validate instead of refresh