Customize print

Hi,

I want to create custom print format that i need to retrieve customer details such as customer contact , how can i do that ? is there any example of code ?

for example i want to get customer contacts thats for shipping

Thanks

Create a new Print Format.

Customer contact info is already loaded in the fields…

https://erpnext.com/user-guide/customize-erpnext/print-format

Hi Rusabh,

i wonder is there a way i can print all the variable in the doc variable ?
im googling it for a while but it always giving me an error , what is doc variable ? its not a mapping and not a dict ?

Thanks

Check the DocType Fields Table for all the properties.