Hi All! I bumped into this JS error after updating to the newest version. This is when I change UOM field in Stock Entry Window. Before, if the item has a UOM Conversion Detail, it will show Conversion Factor but now it is getting this error. I believe it is this script from stock_entry.js.
uom: function(doc, cdt, cdn) {
var d = locals[cdt][cdn];
if(d.uom && d.item_code){
var arg = {'item_code':d.item_code, 'uom':d.uom, 'qty':d.qty}
return get_server_fields('get_uom_details', JSON.stringify(arg),
'items', doc, cdt, cdn, 1);
}
},
And this JSON.stringify(arg) I believe is the one causing the error. Any input is greatly appreciated. Thanks!