Example showing how to fetch value in a child table field from Master DocType
Sample Script to fetch expiry_date field from Batch doctype to Sales Invoice Item table
Step 1: Create Custom Script for Sales Invoice (parent) doctype
Step 2: Script as below & Save

Sample Script to fetch expiry_date field from Batch doctype to Sales Invoice Item table
Step 1: Create Custom Script for Sales Invoice (parent) doctype
Step 2: Script as below & Save

Updated on: 21 / 08 / 2021