Create terms and conditions templates
A Terms and Conditions template holds approved contract wording, for example delivery, warranty, and return clauses. When you select a template on a transaction, ERPNext copies its text into the transaction. Your team then uses the same approved wording every time.
Prerequisites
- Approved wording from your legal, sales, and finance teams. ERPNext stores the text. It does not check whether the text is legally suitable.
- A Print Format that prints the terms. The standard formats do.
Create a template
- Open the Terms and Conditions list and select Add Terms and Conditions.
- Enter a Title that names the purpose, for example Export Sales Terms.
- Under Applicable Modules, keep Selling, Buying, or both selected.
- Select Copy Attachments to Transaction if files attached to this template must be copied to each transaction that uses it.
- Enter the wording in Terms and Conditions.
- Save.
Keep sales and purchase wording in separate templates, so users see only the templates that fit the document.
Use a template on a transaction
- Open a draft Quotation, Sales Order, Sales Invoice, or another document with a Terms tab.
- On the Terms tab, select the template in Terms.
- Review the copied text in Terms and Conditions Details. Edit it for this transaction if your process allows.
- Save and submit the transaction.
The copied text belongs to the transaction. Later changes to the template do not change existing transactions. To refresh a draft, select the template again.
To print the terms, select Print on the transaction and check the Terms and Conditions section in the preview.
Insert document values with Jinja
The template text can contain Jinja expressions. ERPNext replaces them with values from the transaction:
Order reference: {{ name }}
Order date: {{ transaction_date }}
Expected delivery: {{ delivery_date }}Use field names that exist on the transaction's DocType. Test the template on a draft document before you use it.
Use structured fields where they exist
Do not write in the terms what a field already controls. Fields drive calculations, reports, and later documents.
| Requirement | Use this instead of free text |
|---|---|
| When payment is due | A Payment Terms Template |
| Shipping responsibility | Incoterm and Named Place |
| Delivery dates | Delivery Date on the order and on each Item row |
| Taxes | A Sales Taxes and Charges Template |
Template fields
| Field | What it does |
|---|---|
| Title | The name users select on transactions. |
| Disabled | Hides the template from new transactions. Disable old templates instead of deleting them. |
| Selling | Makes the template available on selling documents. |
| Buying | Makes the template available on buying documents. |
| Copy Attachments to Transaction | Copies the template's attachments to the transaction. |
| Terms and Conditions | The text that ERPNext copies. |
Troubleshooting
| Problem | Cause and fix |
|---|---|
| The template does not appear on a transaction | It is disabled, or Selling or Buying is cleared for that module. |
| The terms do not print | The print format does not include the terms field. Check the print format. |
| A Jinja value is empty | The field name does not exist on that DocType, or the field has no value. |
| Attachments were not copied | Select Copy Attachments to Transaction before you select the template on the transaction. |