frappe.ui.form.on(“Expense Claim”, “refresh”, function(frm, cdt, cdn) {
var d = locals[cdt][cdn];
frappe.model.set_value(cdt, cdn, “balance_returnable_amount”, d.allotted__amount - d. total_sanctioned_amount);
balance_returnable_amount.toFixed(0);
refresh_field(“balance_returnable_amount”);
});
Above is the script I have written for the expense claim , the field does not show rounded figures.Can anyone help me out?