I need help in creating a unique auto number that will look like this EN-0012345-001
The first component “EN” indicates if it is an Engineering or Sales Order. The second component is auto generated and the third component is based on what day of the week. Ex. 001=Monday, 002=Tuesday, ect.
In the employee table I have a field that indications the department so the EN or SL can be driven from that field. The last component comes from the day of the week and the time of day. If the order is created before 3:00pm on Monday it would be EN-012345-001, but if it is after 3:00pm it would be EN-0012345-002 is the something that can be achieved?
Thanks
The first component “EN” indicates if it is an Engineering or Sales Order. The second component is auto generated and the third component is based on what day of the week. Ex. 001=Monday, 002=Tuesday, ect.
In the employee table I have a field that indications the department so the EN or SL can be driven from that field. The last component comes from the day of the week and the time of day. If the order is created before 3:00pm on Monday it would be EN-012345-001, but if it is after 3:00pm it would be EN-0012345-002 is the something that can be achieved?
Thanks