Customize Print Format

Customize Print Format

The layouts created when you want to print or email a transaction are known as print formats.

Every transaction in ERPNext, including all sales and purchase transactions, HR records, and many more, can benefit from this capability.

Three different print format kinds are available in ERPNext: Standard Print Format, Custom Print Format, and HTML Print Format.

Standard Print Format

The Frappe Framework will develop a Standard Print Format for each Printed Document Type in ERPNext. The position of the relevant fields in the document will determine where the fields are placed in the Standard Print Formats.

A Customize Form must be used to make any changes to the Standard Print Format. Check out Print Formats's adding fields as well.

Custom Print Format Using a program called Print Format Builder, you can also design your own unique print formats. You can use this tool to create a straightforward Customized Print Format by dragging and dropping fields into the desired format.

ERPNext includes a number of pre-defined templates in three different styles, including Modern, Monochrome, and Classic, for producing Custom Print Formats.

Open a current template from: to construct your versions.

Build > Views > Print Format

Print Settings

To edit/update your print and PDF settings, go to:

Settings > Print Settings

HTML Print Format You would need some familiarity with HTML, CSS, and Python in order to create an HTML Print Format. This is an example of how a print format with a very precise format might be designed.

The Jinja Templating Language is used on the server to provide Print Formats. All forms have access to the doc object which holds information about the document that is being formatted. The frappe module gives you access to popular utilities as well. You can visit the ERPNext Community forum or start a new thread for your question to get assistance when establishing an HTML-based print format.

The whole range of classes in the Bootstrap CSS Framework are available for customizing.

References 1. Jinja Templating Language: Reference 2. Bootstrap CSS Framework

Example

Notes 1. To get date and currency formatted values use, doc.get_formatted("fieldname")

  1. For translatable strings, use {{ '{{ _("This string is translated") }}' }}