i was assigned to create an application for pc, software and hardware inventory, but i have a problem creating a sequential and formatted number for each document, example
comp-04-03-1042 = year-month-document number
Comp is Code for computer
H is code for hardware
S is code for software
i want to issue this document number only if the document is being save.
and the document number is being reset every month.
thanks in advance.