call to this number if you want any clarification:9876543534

------Naming Series and Naming Settings

Naming Series and Naming Settings

 · 5 min read

Understanding Naming Series and Naming Settings in ERPNext

https://docs.frappe.io/api/method/wiki.api.ogimage.ogimage?route=erpnext/document-naming-settings&v=f006153ffa22

Introduction

In any ERP system, every document needs a unique identification number. In ERPNext, this identification number is called the Document Name or Document ID.

For example:

  • Sales Invoice: SINV-2026-00001
  • Purchase Invoice: PINV-2026-00001
  • Sales Order: SO-2026-00001
  • Delivery Note: DN-2026-00001

ERPNext provides a flexible feature called Naming Series to automatically generate these unique numbers.

This helps organizations maintain a systematic, organized, and easily searchable numbering system for their business transactions.


What is a Naming Series?

A Naming Series is a predefined format used by ERPNext to automatically generate unique names for documents.

Instead of manually entering a document number every time, ERPNext automatically generates it based on the configured naming pattern.

Example

Suppose the Naming Series for Sales Invoice is:

SINV-.YYYY.-

ERPNext may generate:

SINV-2026-00001
SINV-2026-00002
SINV-2026-00003
SINV-2026-00004

Here:

  • SINV → Prefix representing Sales Invoice
  • .YYYY. → Current year
  • 00001 → Automatically generated sequential number

This reduces manual work and prevents duplicate document numbers.


Why is Naming Series Important?

Naming Series is important because it provides:

1. Unique Identification

Every document gets a unique number, making it easy to identify and track transactions.

2. Automatic Number Generation

Users do not need to manually enter document numbers.

3. Easy Document Tracking

Documents can easily be searched using their naming series.

For example:

SINV-2026-00125

immediately indicates that the document is a Sales Invoice.

4. Better Organization

Different transaction types can have different prefixes.

For example:

Document Naming Series
Sales Invoice SINV-.YYYY.-
Purchase Invoice PINV-.YYYY.-
Sales Order SO-.YYYY.-
Purchase Order PO-.YYYY.-
Delivery Note DN-.YYYY.-

5. Business-Wise or Branch-Wise Identification

Organizations can create different naming series for different branches, departments, or business processes.

For example:

HHIN-SINV-2026-00001
HHIN-SINV-2026-00002

and

HHDEL-SINV-2026-00001
HHDEL-SINV-2026-00002

This makes it easier to identify which branch created the document.


Understanding Naming Series Format

A Naming Series consists of different components.

For example:

SINV-.YYYY.-.#####

Let's understand each part:

Component Meaning Example
SINV Prefix Sales Invoice
.YYYY. Current year 2026
##### Sequential number 00001

The resulting document name could be:

SINV-2026-00001

The next document will automatically become:

SINV-2026-00002

Common Naming Series Symbols

ERPNext provides different options for creating dynamic naming patterns.

Year

.YYYY.

Example:

SINV-.YYYY.-

Result:

SINV-2026-00001

Month

.MM.

Example:

SINV-.YYYY.-.MM.-

Result:

SINV-2026-09-00001

Sequential Number

#####

The number of # symbols determines the number format.

For example:

#####

can generate:

00001
00002
00003

What is Naming Setting?

Naming Settings is the configuration area in ERPNext where administrators can define how document names should be generated.

It provides control over the naming behavior of different DocTypes.

For example, an administrator can configure whether a document should use:

  • Naming Series
  • A custom naming pattern
  • A field value
  • User-defined naming

The exact available options can depend on the DocType and ERPNext version.


Naming Series vs Naming Settings

Although the terms sound similar, they are different.

Naming Series Naming Settings
Defines the actual numbering pattern Controls/configures how naming works
Example: SINV-.YYYY.- Determines the naming method/settings
Generates document names Provides configuration for document naming
Mainly focuses on the format Focuses on naming behavior

In simple words:

Naming Series = How the document number should look

Naming Settings = How ERPNext should manage/generate the document number


How to Configure Naming Series in ERPNext

The general process is:

Step 1: Open the Required DocType

For example:

Sales Invoice

Step 2: Check the Naming Options

Depending on the DocType and ERPNext configuration, you can select or configure the required naming series.

Step 3: Define the Naming Series

For example:

SINV-.YYYY.-.#####

Step 4: Save the Configuration

Once the configuration is saved, new documents will follow the configured naming pattern.


Example: Sales Invoice Naming Series

Suppose a company wants all Sales Invoices to follow this format:

HHIN-SINV-2026-00001

The naming pattern can be designed as:

HHIN-SINV-.YYYY.-.#####

ERPNext will generate:

HHIN-SINV-2026-00001
HHIN-SINV-2026-00002
HHIN-SINV-2026-00003

This provides an immediate indication that:

  • HHIN → Company/branch identifier
  • SINV → Sales Invoice
  • 2026 → Financial/calendar year
  • 00001 → Sequential document number

Example: Different Naming Series for Different Processes

Consider a company that has two major processes:

  1. Production
  2. Customer Service

The company may want separate numbering for each process.

Production

PROD-SINV-2026-00001
PROD-SINV-2026-00002

Customer Service

CS-SINV-2026-00001
CS-SINV-2026-00002

This makes document identification much easier.

For example, by looking at:

PROD-SINV-2026-00015

the user can immediately understand that the invoice belongs to the Production process.


Advantages of Using Naming Series

Better Document Management

Documents can be organized systematically.

Reduced Manual Errors

Users don't need to manually enter document numbers.

Faster Searching

Users can search documents using prefixes or document numbers.

Better Reporting

Reports can be filtered based on naming patterns where appropriate.

Improved Audit Trail

Sequential numbering helps organizations maintain a clear transaction trail.

Business Process Identification

Prefixes can be used to distinguish branches, departments, or transaction types.


Important Considerations

While configuring Naming Series, organizations should carefully plan the numbering structure.

1. Keep the Naming Series Simple

Avoid unnecessarily complicated naming patterns.

2. Use Meaningful Prefixes

For example:

SINV
PINV
SO
PO
DN

are easier to understand.

3. Consider Multiple Companies or Branches

If the organization has multiple branches, separate prefixes may make document tracking easier.

4. Plan Before Go-Live

Naming Series should ideally be finalized before the system goes live because changing numbering patterns later may require careful handling of existing transactions.

5. Avoid Duplicate or Confusing Prefixes

Each business process should have a clear and understandable naming convention.


Real-World Example

Suppose a company has the following transactions:

  • Sales Invoice
  • Purchase Invoice
  • Delivery Note
  • Purchase Receipt

The company can define:

Sales Invoice      → SINV-.YYYY.-.#####
Purchase Invoice   → PINV-.YYYY.-.#####
Delivery Note      → DN-.YYYY.-.#####
Purchase Receipt   → PRE-.YYYY.-.#####

Documents generated in 2026 could look like:

SINV-2026-00001
PINV-2026-00001
DN-2026-00001
PRE-2026-00001

This creates a consistent and professional document numbering system.


Conclusion

Naming Series is a small but very important feature in ERPNext. It helps organizations automatically generate unique, structured, and meaningful document numbers.

A well-designed Naming Series can improve:

  • Document tracking
  • Data organization
  • Searchability
  • Auditability
  • Business process identification
  • Overall ERP system usability

Therefore, organizations should carefully design their Naming Series and Naming Settings based on their business requirements before starting large-scale transactions in ERPNext.

In simple terms:

Naming Series defines the format of the document number, while Naming Settings help control how ERPNext generates and manages those document names.


No comments yet.

Add a comment
Ctrl+Enter to add comment