How to fetch batch price in delivery note item with all functionalities

Hi Team,
I am trying to get the item price rate in the batch validating with manufacturing date lies in the valid from and valid to of the item price and i achieve this using js
now i need to fetch that batch mrp in delivery note Item table while doing Delivery note using create button through Picklist,
also if 2 batches have different mrp that will reflect as batch wise also we have discount applies on sales order item wise.
if the batch mrp will different on that rate every discount should get calculated…

Please review it and your suggestion will be appreciated.