Item not fetch in the batch

Hello team ,

I have create one purchase receipt ,in that i have select item that item i want to fetch in the time of batch creation but not able to fetch the item

i use below js code

frappe.ui.form.on(‘Purchase Receipt’,‘onload’,function(frm){
cur_frm.field_dict[‘item’].get_query = function(doc,cdt,cdn){
return{
filters:[
[“Item”,‘Batch’,‘in’,[“item”]]
]
}
}
});
i have try above code but didnt working for me
can any one help me for the same

Did you find a solution for this?

Thank you!