I’ve created one custom field called “UID Number” to accept employees Aadhar Card Number in Employee Form. I want to add this UID Number in Salary Slip. How can i configure this ? Also i need show “Date Of Joining” Field also.
in salary slip page, go to edit doctype, add one row - in that you will see fetch from field
just add there employee.uid_number or employee.date_of_joining.
Note: employee in my case is employee field name in salary slip doctype.
That erpnext handle internally.
but if you want to print all employee field you can do
in py frappe.get_doc(“Employee”, “pass here id of employee(i.e HR-EMP-00003)”)
in js frappe.model.get_docfrappe.get_doc(“Employee”, frm.doc.employee)
Note : frm.doc.employee is link field of employee in salary slip.