In Quotation and sales order it is not saving

Once i create new quotation or sales order after filling everything once i press save it is showing as not saved only please any one solve the problem

any one have same problem

Please share more information. Share screenshot of the browser console. If you are self hosted, post the traceback.

i used some custom script due to that it happend ,but i dont know what mistake in it
// 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);
refresh_field(“grand_total”);
});
what is the mistake in the code.

when i include that script then i cannot save quotation.