Rule-based Naming Series and Abnormal Increments (Employee Number)

Hi all,

I’m trying to create a customized naming series based on the Employee’s branch. Say for example:
If an employee’s branch is Branch A, the naming series is 1#####. (auto increment)
If an employee’s branch is Branch B, the naming series is 3#####. (also auto increment)

Is this possible?

Also I would like to start from the highest per increment always. Let’s say there are

100001 100002 100004 100006 employees.

If i create an employee in Branch A, it should be 100007.

Thank you very much in advance!

Feature implemented in version 13