Company-wise Naming Series
Imagine you’re managing a multi-company setup and you want distinct naming series for documents related to each company. For instance, you have three companies:
- Company A,
- Company B, and
- Company C.
You want a company-specific naming series for documents like Sales Invoice, Purchase Order, etc. For instance, for Company A, the Sales Invoice naming series would be SINV-A-0001, and for Company B, it would be SINV-B-0001. Achieving this customization is straightforward. Simply follow the steps outlined below:
1) First, go to the DocType for which you want different series based on company and open its Customize Form. In this case, we will Select from Type as Sales Invoice.
2) Next, below the field of Company, add another field and name it ‘Abbr’. Add
company.abbr
in its Fetch From input.Also, keep this field hidden (if needed).
3) Now, in the Customize Form itself, go to the Naming Series row and expand it. In the Options box, add another entry in new line (taking Sales Invoice as example)
SINV-.abbr.-.####
and set this as default.Once this is done, click on Update.
Now, go to Sales Invoice and create one. Select the Company and the Naming Series will be updated automatically based on the company’s abbreviation.