Print Formats are rendered on the server side using the Jinja Templating Language. All forms have access to the doc
object which contains information about the document that is being formatted. You can also access common utilities via the frappe
module.
For styling, the Boostrap CSS framework is provided and you can enjoy the full range of classes.
1) Fetching document object
{{ doc.customer_name }}
2) Date format
{{ doc.get_formatted("po_date") or ''}}
3) Currency Formate
{{ doc.get_formatted("date") }}
4) Avoiding None in Print Format:
Fetching Batch number if ordered item has batch.
Write if condition, otherwise it will print None
{%- if row.batch_no -%}
<b>Batch No: </b>{{ row.batch_no or '' }} <br>
{%- endif -%}
If you find any bug in this repository or want any help for customizing ERPNext, Customise print formate you can contact me or drop email.
Software Developer, sbkolate.com