Erpnext: Multi Company Naming Series

Created on 17 Oct 2018  路  3Comments  路  Source: frappe/erpnext

Currently naming series is set in general, applicable to all companies.

As a general practice, it should be different for different companies,

  • It should be possible to set company wise default naming series and series value for each doctype.
  • While dealing with doctypes, like sales invoice, it should auto-select default naming series and series value based on company chosen.
Accounts Enhancement feature-request

Most helpful comment

We recently changed a lot of naming series for DocTypes to make it make it more generic and changing it again to tackle multi company seems hassling.

Besides ERPNext grants the power of great customization and with a little tweak this feat can be achieved.

  • First, go to the DocType for which you want different series based on company and open its Customize Form.
  • Next, below the field of Company, add another field and name it 'Abbr'. Keep this field hidden and add company.abbr in its fetch_from input.
  • Now in the naming_series field's options add another entry in new line ( taking Sales Invoice as example) SINV-.abbr.-.#### and set this as default.

Thats it. So every time you make a new Sales Invoice and select different company, the naming series will automatically adjust for it.

image

All 3 comments

We recently changed a lot of naming series for DocTypes to make it make it more generic and changing it again to tackle multi company seems hassling.

Besides ERPNext grants the power of great customization and with a little tweak this feat can be achieved.

  • First, go to the DocType for which you want different series based on company and open its Customize Form.
  • Next, below the field of Company, add another field and name it 'Abbr'. Keep this field hidden and add company.abbr in its fetch_from input.
  • Now in the naming_series field's options add another entry in new line ( taking Sales Invoice as example) SINV-.abbr.-.#### and set this as default.

Thats it. So every time you make a new Sales Invoice and select different company, the naming series will automatically adjust for it.

image

Thank you for your suggestion.
I feel its Great Solution and smart implementation.
Closing Issue.

hello Dear , currently i have more than 15 company and i need to segregate the serial for each one kindly update the steps more clearly

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deantheiceman picture deantheiceman  路  4Comments

alimalkhalifa picture alimalkhalifa  路  3Comments

fderyckel picture fderyckel  路  5Comments

setsero71 picture setsero71  路  3Comments

gbard picture gbard  路  4Comments