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 ​

  1. Open the Terms and Conditions list and select Add Terms and Conditions.
  2. Enter a Title that names the purpose, for example Export Sales Terms.
  3. Under Applicable Modules, keep Selling, Buying, or both selected.
  4. Select Copy Attachments to Transaction if files attached to this template must be copied to each transaction that uses it.
  5. Enter the wording in Terms and Conditions.
  6. 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 ​

  1. Open a draft Quotation, Sales Order, Sales Invoice, or another document with a Terms tab.
  2. On the Terms tab, select the template in Terms.
  3. Review the copied text in Terms and Conditions Details. Edit it for this transaction if your process allows.
  4. 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:

jinja
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.

RequirementUse this instead of free text
When payment is dueA Payment Terms Template
Shipping responsibilityIncoterm and Named Place
Delivery datesDelivery Date on the order and on each Item row
TaxesA Sales Taxes and Charges Template

Template fields ​

FieldWhat it does
TitleThe name users select on transactions.
DisabledHides the template from new transactions. Disable old templates instead of deleting them.
SellingMakes the template available on selling documents.
BuyingMakes the template available on buying documents.
Copy Attachments to TransactionCopies the template's attachments to the transaction.
Terms and ConditionsThe text that ERPNext copies.

Troubleshooting ​

ProblemCause and fix
The template does not appear on a transactionIt is disabled, or Selling or Buying is cleared for that module.
The terms do not printThe print format does not include the terms field. Check the print format.
A Jinja value is emptyThe field name does not exist on that DocType, or the field has no value.
Attachments were not copiedSelect Copy Attachments to Transaction before you select the template on the transaction.