Solved

Employee ID Auto-numbering

  • 21 April 2022
  • 2 replies
  • 272 views

Is there a way to auto-number employee ID’s? I looked through Numbering Sequences and Employee Classes Preferences without luck. 

I’d like the person setting up new employees not have to find the last number to assign the sequential one after that.

icon

Best answer by Shawn Burt 21 April 2022, 18:42

View original

2 replies

Userlevel 5
Badge +1

I think you are looking for the Segmented Key for employee and confirm the numbering id setup too
the key needs to be AutoNumber and the seq needs to have manual numbering turned off. As the images show the employee setup is all manual.

 

Userlevel 6
Badge +4

Hi @vhaase 

Assuming you have the Numbering Sequence already defined and set somewhere (XX Setup Screen), adding the numbering attribute would work

 public class EmployeeMaint_Extension : PXGraphExtension<EmployeeMaint>
{

[PXMergeAttributes(Method = MergeMethod.Merge)]
[AutoNumber(typeof(Search<XXSetupExt.usrEmployeeNumbering>), typeof(AccessInfo.businessDate))]
protected void _(Events.CacheAttached<EPEmployee.acctCD> e) { }
}

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved