How to Implement Item Group-Based Sequence Number in ERPNext for Unique Item Code

Hello,

I need assistance in generating unique item codes based on the Item Group in ERPNext. The goal is to ensure each item follows a structured numbering format.

Example:

  • Electronics: ELC-00001, ELC-00002, …
  • Furniture: FUR-00001, FUR-00002, …
  • Machinery: MCH-00001, MCH-00002, …

Requirements:

  1. Each new item should have a unique item code following the Item Group prefix.
  2. The numbering should be incremental per Item Group.
  3. It should be auto-generated when creating a new item.

Hi

On top of naming series settings, the document naming rule will serve the purpose.

1 Like

@ahsantareen Thanks

1 Like