garybsimon / erpnext_print_format

print format samples for ERPNext

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Print Format Help For ERPNext


Introduction

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.


References

  1. Jinja Tempalting Language: Reference
  2. Bootstrap CSS Framework

Other Notes:

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.

Sambhaji Kolate
Software Developer, sbkolate.com
Mobile: 9850015051 | Email:kolate.sambhaji@gmail.com



Thanks to ERPNext Team for Great Product




About

print format samples for ERPNext


Languages

Language:HTML 100.0%