Set up payment terms templates ​

A Payment Terms Template is a reusable payment schedule, such as "Net 30" or "50% advance, 50% in 30 days". It combines one or more Payment Term documents. Each Payment Term defines one installment: its share of the invoice, how its due date is calculated, and an optional early payment discount.

When you select a template on a sales or purchase order or invoice, ERPNext fills the Payment Schedule table with one row for each installment, with its due date and amount.

For the concepts behind payment terms, see Payment terms.

Prerequisites ​

  • You know the schedules that you offer to customers or accept from suppliers.

Create the Payment Terms ​

Create one Payment Term for each distinct installment rule. You can reuse a term in many templates.

  1. Open the Payment Term list and select Add Payment Term.
  2. In Payment Term Name, enter a clear name, for example Net 30 or Advance 50%.
  3. Optional: in Invoice Portion (%), enter the default share of the invoice for this term.
  4. In Due Date Based On, select how ERPNext calculates the due date:
    • Day(s) after invoice date
    • Day(s) after the end of the invoice month
    • Month(s) after the end of the invoice month
  5. Enter Credit Days or Credit Months to match the rule.
  6. Optional: select a Mode of Payment for the installment.
  7. Optional: set an early payment discount. See Add an early payment discount.
  8. Save the Payment Term.

Create the template ​

  1. Open the Payment Terms Template list and select Add Payment Terms Template.
  2. In Template Name, enter the name that users see in documents.
  3. In the Payment Terms table, add one row for each installment, in the order of the due dates.
  4. In each row, select the Payment Term and check the Invoice Portion (%). ERPNext copies the due date rule and the discount from the term.
  5. Make sure that the Invoice Portion (%) of all rows adds up to 100.
  6. Optional: select Allocate Payment Based On Payment Terms. See Allocate payments by installment.
  7. Save the template.

For example, a "50% Advance, 50% Net 30" template has two rows: an Advance 50% term with 50% due 0 days after the invoice date, and a Net 30 term with 50% due 30 days after the invoice date.

Apply the template ​

Select the template in the Payment Terms Template field (in the Terms tab) of a Quotation, Sales Order, Sales Invoice, Purchase Order, or Purchase Invoice. ERPNext builds the Payment Schedule from it.

To fill the template automatically, set a default:

  • On a Customer or a Supplier: Payment Terms Template.
  • On a Customer Group or a Supplier Group: Default Payment Terms Template.
  • On the Company: Default Payment Terms Template.

When you create an invoice from an order or a quotation, ERPNext copies the schedule if Automatically fetch Payment Terms from Order/Quotation is selected in Accounts Settings. To print the schedule on the invoice, select Show Payment Schedule in print in Accounts Settings.

TIP

A Delivery Note has no payment terms. An invoice created from a Delivery Note may need the template again.

Allocate payments by installment ​

When Allocate Payment Based On Payment Terms is selected on the template, a Payment Entry for the invoice gets one reference row for each installment, with the Payment Term set on the row. Each payment is tracked against the installment that it pays. ERPNext does not allow an allocation larger than the outstanding amount of that installment.

Leave the option clear when you only need due dates for reminders and reports, and payments can settle the invoice as a whole.

Add an early payment discount ​

A Payment Term can give a discount when the customer pays before a date. Set these fields in the Discount Settings section of the Payment Term or the template row:

FieldWhat it controls
Discount TypePercentage or Amount.
DiscountThe discount percentage or amount.
Discount Validity Based OnHow the last date of the discount is calculated, with the same options as Due Date Based On.
Discount ValidityThe number of days or months for the discount.

The invoice shows the last date in the Discount Date column of the Payment Schedule. When you create a Payment Entry from the invoice on or before that date, ERPNext applies the discount. See Record a payment discount.

Troubleshooting ​

Combined invoice portion must equal 100% ​

The Invoice Portion (%) of the rows does not add up to 100. Correct the portions.

The Payment Term at row 2 is possibly a duplicate ​

Two rows have the same Payment Term, Credit Days, Credit Months, and Due Date Based On. Use a different term for each installment.

Row 1: Payment Term is mandatory ​

Allocate Payment Based On Payment Terms is selected and a row has no Payment Term. Select a term in every row.

The due dates are not what you expected ​

Open each Payment Term and check Due Date Based On, Credit Days, and Credit Months. To use a one-off schedule on a document, clear the template, then edit the Payment Schedule rows.

Rows with duplicate due dates in other rows were found ​

Two rows of the Payment Schedule have the same due date. Change the terms so that each installment has its own due date.

Cannot allocate more than an amount against a payment term ​

The template allocates payments by installment. The Payment Entry row allocates more than the open amount of that installment. Reduce the allocation or fetch the outstanding invoices again.

Frequently asked questions ​

Does ERPNext install standard templates? ​

No standard templates are guaranteed on a new site. Create the few that match your terms, such as Due on Receipt, Net 30, and an advance-plus-balance schedule.

Can the first installment be a fixed amount? ​

Not in the template. The Invoice Portion (%) is a percentage. For a fixed advance, edit the Payment Schedule of the document after you clear the template.