Table of Contents

Sales and purchase document number series templates

Document number series templates determine the number series that the system uses to assign numbers to posted sales and purchase documents for a specific customer, vendor, or agreement. A template does not affect the number of an unposted document.

Setting up a template

Sales templates are set up on the Sales Document Nos. Templates page, and purchase templates are set up on the Purchase Document Nos. Templates page. Both pages are available through Search.

Each template contains the following information:

Field Description
Template Name Specifies the unique template code.
Description Specifies the purpose of the template.
Document Type Specifies the posted document type for which the template line is used. A template can contain one line for each document type.
No. Series Specifies the number series for the selected posted document type.
Line Description Displays the description of the selected number series.

The following Document Type values are available in a sales template:

  • Posted Shipment;
  • Posted Invoice;
  • Posted Return Receipt;
  • Posted Credit Memo;
  • Posted Prepayment Invoice;
  • Posted Prepayment Credit Memo.

The following values are available in a purchase template:

  • Posted Receipt;
  • Posted Invoice;
  • Posted Return Shipment;
  • Posted Credit Memo;
  • Posted Prepayment Invoice;
  • Posted Prepayment Credit Memo;
  • Posted Advance Statement.

For document types that do not have a line in the selected template, the system uses the standard number series from the Sales & Receivables Setup or Purchases & Payables Setup page. If no template is specified in a document, the standard series are used for all posted document types.

A template cannot be deleted while it is specified on a customer, vendor, or corresponding agreement card.

Determining the template in a document

The Sales Document Nos. Template field is available on the customer and customer agreement cards. The Purchase Document Nos. Template field is available on the vendor and vendor agreement cards.

When a customer agreement is created, the Sales Document Nos. Template value is copied from the customer card and can be changed on the agreement. For a vendor agreement, the purchase template is specified directly in the agreement field.

When a business partner and agreement are selected in a document, the system determines the template according to the following rules:

  1. If an agreement is specified in the document, the value from the agreement is used. The agreement value takes priority over the value on the customer or vendor card.
  2. If the template field on the agreement is blank, the template from the business partner card is not inherited, and the standard number series apply to the document.
  3. If no agreement is specified in the document, the template from the customer or vendor card is used.

The template field can be changed in an unposted document. After the value changes, the system initializes the posting number series again: values from the template lines replace the corresponding standard series, while standard series remain in effect for the other document types.

The template field is displayed in orders, invoices, credit memos, and return orders. The selected value is also stored in the archived version of an order and displayed in the corresponding posted shipments, receipts, invoices, and credit memos.

When a document is copied together with its header, the system initializes the number series again according to the template in the copied document.

Advance statements

In an unposted advance statement, the Purchase Document Nos. Template field is determined according to the rules for purchase documents and can be changed before posting. If the template contains a line with the Posted Advance Statement type, the system uses its number series for the posted advance statement number. If the line is missing or no template is specified, the series from the Posted Advance Statement Nos. field on the Purchases & Payables Setup page is used.

In a posted advance statement, the field displays the template that was used during posting and is not editable.