ERPNext.com Frappe Cloud Support Partners Foundation

Select batch no dialog script

Hi,
I need to show the following dialog when the user clicks on a custom button in ‘Delivery Note Item’

Capture

How to that with JS Script?
Thanks in advance

This might help: https://github.com/frappe/erpnext/blob/develop/erpnext/public/js/utils/serial_no_batch_selector.js