Im trying to make a custom print format,already created a HTML bootstrap layout now im stuck at the print format builder. how to access data from erpnext, only i got ```
{{ doc.get_formatted(“invoice_date”) }} for invoice date and {{ doc.customer_name }} for customer name
You can access all fields of the sales invoice in the same way, like invoice_date and customer_name. To see which fields are available you can
(a) activate developer mode and hover over the fields of an actual invoice or
(b) open the sales invoices and click on Menu > Customize.
Print formats are Jinja templates, so you can also refer to Template Designer Documentation — Jinja Documentation (2.11.x) .
You can also use the variables from here: {{ letter_head }}
, {{ footer }}
, …
4 Likes