Payroll - Data Fetch

Hi all,

Can anybody help me. How to fetch the Employee DOJ (Date of Joining) & DOB (Date of Birth) while running payroll process.

If you add a custom field for DOJ (Date of Joining) & DOB (Date of Birth), then on creation of Salary Slips, values in these field must be fetched.

https://erpnext.org/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/custom-script-fetch-values-from-master

Thanks @umair. Hope this will help.