Issue in Fetching data

I can’t find some data from data base in custom print format can anyone help me out??

1 Like

please the print format (just relevant part)

I am making custom print format but when i fetch data of Employee from data base it give nothing.

1 Like

share print format script…

you can use

frappe.db.get_value("Employee",doc.employee,"employee_name")

doc.employee is how you denote the current document field. employee_name is the field you wish to fetch from that document.

1 Like

Thanks alot it works for me :slight_smile: