Skip to main content

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.

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.

 


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