I need help tweaking the following code to reset the incremental numbering part of my invoice number. It works wonderfully; however, due to the high number of invoices created, it needs to be reset daily.
The invoice format is yyyymmdd-0000, the last four digits are the incremented numbers...