Fetch value in a child table field from Master

Fetch value in a child table field from Master

Example script to add the expiry date field to the Sales Invoice Item table from the Batch doctype

Write a customized script for the Sales Invoice (parent) doctype in step one.

Script as follows in Step 2 and save.