I am a new ERPNext user and have successfully installed version 16 on my own hardware. So far, the experience has been great!
I’m now setting up my items and would like to use a simple, numeric item code series. My goal is to have it start at 10000000 (eight digits, ten million) and auto-increment from there. I do not want any prefixes, suffixes, or separators – just plain numbers.
I can see in the Stock Settings (Stock > Settings > Stock Settings) where I can select a “Item Naming Series,” but I can’t figure out how to:
Define a new series that starts specifically at 10000000.
Ensure it uses exactly eight digits (so the next would be 10000001, 10000002, etc.).
Could someone please guide me through the steps to set this up correctly?
Do I need to create a custom “Naming Series” first? If yes, where and how?
Or is there another method, perhaps via “Number Cards” or server-side settings?
Any help for a beginner would be greatly appreciated!
Welcome @OskarPa to the community - we are here to help you in your ERPNext journey to the best of our abilities
Although what you have asked for should “theoretically” be a very simple task, unfortunately it is not.
If it were any other non-sensitive DocType you could simply go to Build → DocType → DocType Name → Settings → Naming → Rule and you have a lot of options to play around there
For Items it seems Frappe have locked it to the naming series - STO-ITEM-YYYY-.
If you really want to change it (at your own risk): -
Enable developer mode ( Create a DocType ) (ensure you are seeing a warning when you get into the DocType)
Go the item DocType → Form → Details → Series → (on the right side scroll down) Options →
Put 1.#######
I could not figure out a way to start at 1,000,000 (I think you need to renumber the previous one to 999999 - ask ChatGPT - sometimes it does not hallucinate - also post your answer here for others to benefit in case you get)
Maybe someone with more expertise can advice if the above is a safe way of doing what you want
thank you very much for your quick reply and the explanation!
I actually already considered using a Document Naming Rule as well. It allows me to conveniently
define the number of digits, and
set a custom starting value
which would be perfect for my use case.
The only issue I ran into is that a prefix is mandatory. Even if it’s just a single character, it always becomes part of the Item Code, which I would like to avoid. My goal is to have a purely numeric, eight-digit item code only (e.g. 10000000, 10000001, …).
Do you happen to know if there is any workaround or trick to bypass the prefix requirement or leave it effectively empty?
Or is this simply a hard limitation of Frappe / ERPNext when it comes to Items?