Batch Number in Stock Entry Tooltip Window

I need help how to achieve this functionality. A tooltip window will display the details when I hover my mouse over Batch No field in the Items table. Appreciate any help, I am using version 14. I found this script but not working.

frappe.ui.form.on(‘Stock Entry’, {
refresh: function(frm) {
// Attach a hover event handler to the Batch No field in the Items table
frm.fields_dict[‘items’].grid.get_field(‘batch_no’).get_query = function(doc, cdt, cdn) {
return {
filters: {
// Add any additional filters if needed
},
query: ‘erpnext.controllers.queries.get_batch_no_details’
};
};
}
});

Hi @jcagbay,

Please check it in the forum.