Hi,
Before patch update, the below script was working fine for refreshing the batch field in the Sales Invoice document. But now it is not working.
So kindly look into it and do the needful.
frappe.ui.form.on('Sales Invoice', {
validate: function(frm, cdt, cdn) {
var d = locals[cdt][cdn];
console.log("dbatch",d);
if(d.batch){
var batch = flt(d.batch);
d.batch = batch ;
refresh_field("batch ");
}
}
});