Purchase Receipt Item: Enter Expiry Date on Item Receipt

Hello,

I know that automatic expiry dates can be applied to items, but is there any way to set the expiry date when an item is entered on a Purchase Receipt entry, for each Purchase Receipt Item?

Thanks,
Paul

Looking in to the code and it seems that a manufacturing_date is set by the Batch DocType. On submission this will generate the batch lot number and also assign an expiry date based on Today + the shelf life in days.

What is the best way to intercept this, so that a custom value (manufacturers_expiry_date) from the Purchase Receipt Item can override this if there is an entry in the manufacturers_expiry_date?