Naming series for new doc type

How and where to do it, can you please elaborate it.

Go to : Setup → Customize → Doctype
Search doctype ‘Operation’
In Naming section : set Auto Name value as naming_series:

Priya Shitole
New Indictrans Technologies Pvt. Ltd.

1 Like

I didn’t find any way to edit it.

Ok. Means you are not on developer mode.
Is your setup on frappe cloud or local ??

Priya Shitole
New Indictrans Technologies Pvt. Ltd.

Frankly speaking, I don’t know about it.
My boss has installed on amazon cloud but I have Administrator password.

I appreciate, if you can tell me what is required for that and how to do that?

Regards
Ruchin Sharma

Ok. Login to your server go to path : frappe_bench/sites/{your site name}/site_config.json
Set Developer Mode to 1.
Example :
Note : Don’t make any changes in db_name and db_password, just add developer_mode:1
{
“db_name”: “718adddf93”,
“db_password”: “LQgK3yTNL7NVMSrX”,
“developer_mode”:1
}

Save this reload supervisor. Then login with admin and set Auto name value.

Priya Shitole
New Indictrans Technologies Pvt. Ltd.

I hope, it will not do any mess for rest of the things because this is our active account.

Hi Priya,
Thanks for everything now the numbers are generating but at the wrong place and in the wrong way.

Issue resolved thanks

Hi Priya,
I have one more issue now, I want the number to be generated like SP100001
But the default number series can have only 4 digits, what is the solution for it?

@ruchin78 Please refer attached screen shots and change series from Customize form.

Records after updated naming series :

Priya Shitole
New Indictrans Technologies Pvt Ltd

Hi @ruchin78
I am in a similar situation could you please let me know how you have resolved it.
The wrong naming series.

Thanks a lot.
Mo

Hello I have two problems regarding this same thing. Is it so that on the cloud version you can´t get into developer mode, hence you cant change the auto name field?

I also need a running number for the projects ( mandatory in finland ). I did everything as said before but for some reason the print templates show the field as the field in the naming series without the actual number.

For example customer number in the header is displayed as “CUST1045” but if i want it to show in the actual document it just shows “CUST”.

I would really appreciate help for this. I am running the cloud version. I assume erpnext is not possible to be installed on a third party server?

Thank you.

you could host erpnext on your own

but for your problem i think you miss show the field

Hi Ruchin,

How did you solve the issue of wrong numbers being generated when applying the auto-numbering? I have the same issue and have difficulty to figure out how to solve it. Hope you can help me in here…

Hello,

You have to setup the naming_series field as @priya_s pointed out in this link: Naming series for new doc type - #23 by priya_s.

You need to add a field in the doctype which has a name of naming_series. In the options you can specify a format for the series (eg. SI-.#####) . The number or #'s will correspond to the number of digits in your series number.

1 Like

Newbie here;

Hi All, I have lots of previous docs issued in my company, How do i define the initial value for naming siries.

eg:

PRE-########

normally increment from :

PRE-000000001 to PRE-000000002

I need to initialize value based on our latest record start from PRE-180002930

any ideas fully appreciated

Welcome aboard! A search on naming_series should get you the official docs and lots of pointers

edit: To do this your only option may be to change this at the db level for eg Naming Series Current Value Is not Updating from naming series form - #2 by Sangram

hope this helps

What about if we want to aotoselect naming siries prefix base on user detail, we will add custom field on user doctype to hold the selection property.

eg:

user from branch A will have a doctype append with prefix A together with autoname siries.

branch A:

APV-000020222

branch B:
BPV-000020223

Where Doctype naming siries: ```PV-000020223``

thanks

Yes a naming_series can include a prefix specifier convention of your choice, such a link to an associated DocType, to refer to read a value to include in an document name.

A forum search like ‘naming_series prefix’ will confirm and point the way if you get stuck.