Renumber bills and entries
Files Maintenance has two operations that renumber documents, to remove the gaps that deletions leave or to put the numbers in date order: Renumber Bills and Renumber Entries. Each has a wizard with one working page after the backup page. This page explains both wizards with their fields, buttons and messages. The steps are in Renumber bills and entries.
Both operations change numbers saved in the file, and there is no undo after they end. Take a backup before you start, and ask the other users to leave the file.
Opening the wizards
Click File > Tools > Files Maintenance, select Renumber Bills or Renumber Entries and click Run. The window and the warning frame are explained in Run files maintenance.
- Renumber Entries is in the list when your key includes accounting, the file does not work in multi-file mode and the Gulf and UAE tax systems are off. Renumber Bills has the same condition, and also needs the option "Force bill number by bill type" to be off (Available maintenance operations).
- The Files Maintenance permission guards the maintenance window (Run files maintenance). The permission named after the operation under Users Management > Operations controls only whether its tile shows on the desktop. The program does not check it when you run the operation from the Files Maintenance window, from its favorites menu or from Quick Launch search.
The description in the list
The Files Maintenance list shows the name of each operation with its description under it:
| Operation | Description |
|---|---|
| Renumber Bills | "Through this operation, you'll be able to renumber a certain form of invoices to have specific serial number and get rid of gaps resulting from deleted invoices." |
| Renumber Entries | "During the daily work, you might add entries not arranged according to their dates. Thus, their numbers will not be in serial order as compared to their dates. In addition to this, recurring deletion and addition operations would result in leaving gaps between entries numbers." |
The backup page
The first page of each wizard is Make a Backup. Its types and fields are in Make a backup. After the backup, or after you choose not to make one, the numbering page appears. How the pages, their buttons and the cancel question work is in How the maintenance wizards work.
The Renumber Bills wizard
The page title is Renumber Bills, and it is the last page of the wizard. Its text says: "This process will renumber bills according to their dates and will remove gaps between numbers." Then: "Set start date and numbering options then click "Start" to begin numbering bills."
Fields
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Invoices | The bill types whose bills are renumbered. | Yes (at least one type) | Lists the bill types you have the permission to browse. All are ticked when the page opens, so clear the ones you do not want. Bill types show only if your key includes stock. With Turkish e-invoicing on, the types it covers are not listed. |
| Start Numbering from | The first day that is renumbered. | Yes | Starts with today's date. The field cannot be empty. There is no end date: all bills from this date on take part. Example: 1-1-2026. How it works is in Date fields and calendar. |
| Serial Numbering for all Selected Types | Makes the numbering of all ticked types one series instead of a series per type. | No | Not ticked when the page opens. |
Under the Invoices list there is a field without a caption that shows the prompt Groups of forms. Choose a forms group in it to tick its types in the list and untick the others. The program empties the field when you click a check box in the list (Forms groups).
How the program calculates the numbers (the order, the branches, the start number) is in Renumber bills.
Buttons
| Button | What it does |
|---|---|
| Start | Checks that you ticked a type, then starts the operation. It asks for no confirmation. |
| Back | Returns to the backup page. |
| Next | Disabled: this is the last page. |
| Cancel | Before Start: asks "Are you sure you want to exit and cancel the maintenance operation?" and closes the wizard without a change. After Start: disabled, so the operation cannot be stopped. |
| Help | Opens the help topic of the page, if there is one. |
Running
After Start the buttons are disabled and the progress bar appears. The program first checks that no other user is in the file, then that the ticked types have a bill on or after the start date, and then renumbers in one database transaction: if it stops with an error, the numbers return to what they were. On success "Operation successfully completed" appears, the wizard closes and you are back in Files Maintenance. If the program option Activate log file is on, the program adds a log record with the note "- Renumber Bills" (Log File).
The Renumber Entries wizard
The page title is Renumber Entries, and it is the last page of the wizard. Its text says: "This operation will renumber the entries according to their dates and it will eliminate the gaps between entries numbers." Under it is a warning: "You must NOT stop this operation after it starts and if this operation abruptly terminated, you must restore the last backup copy of the files." At the bottom: "Click "Start" to begin renumbering entries."
Fields
| Field | Description | Required | Values and rules |
|---|---|---|---|
| From | The first day that is renumbered. | Yes | Starts with the opening date of the financial period of the file. The field cannot be empty. It must fall between the start and the end of the period, or the program refuses to continue. There is no end date. Example: 1-3-2026. How it works is in Date fields and calendar. |
| Entries | The list of voucher types whose vouchers are renumbered, such as receipts and payments. | Yes, unless you tick Renumber the manual entry | Lists the voucher types you have the permission to browse, and shows only if your key allows voucher types. All are ticked when the page opens. |
| Renumber the manual entry | Renumbers the entry numbers saved in the file, besides the vouchers of the ticked types. | No | Not ticked when the page opens. If you tick it, the operation can run with no type ticked in Entries, and with no movement in those types. |
Under the Entries list there is a field without a caption that shows the prompt Groups of forms. Choose a forms group in it to tick its types in the list and untick the others. The program empties the field when you click a check box in the list (Forms groups).
What each option renumbers is in What the program does.
Buttons
| Button | What it does |
|---|---|
| Start | Checks the date and your choices (the messages are in Messages), then starts the operation. It asks for no confirmation. |
| Back | Returns to the backup page. |
| Next | Disabled: this is the last page. |
| Cancel | Before Start: asks "Are you sure you want to exit and cancel the maintenance operation?" and closes the wizard without a change. After Start: disabled, so the operation cannot be stopped. |
| Help | Opens the help topic of the page, if there is one. |
What the program does
After Start the buttons are disabled, and the progress bar appears with the line "Renumber Entries" under it. The program checks that no other user is in the file. Then, if you did not tick Renumber the manual entry, it checks that the ticked types have a voucher on or after the start date. Then it renumbers in one database transaction, branch by branch, whatever has a date on or after the start date:
- The vouchers of each ticked type: it orders them by date and then by current number, and gives them consecutive numbers that start after the highest number a voucher of the same type has before the start date, or from
1if it has none. It updates the number kept in the link between the voucher and its entry. - The entries (if you tick Renumber the manual entry): it orders the entries of the file by date and then by current number, and gives them consecutive numbers that start after the highest entry number before the start date, or from
1if there is none. The program does not limit this option to the entries you typed by hand: it includes the entries of bills and vouchers too.
Example: in one branch, receipt vouchers are numbered 1 to 40 before 1-3-2026, and after it there are three vouchers numbered 45, 47 and 50. After the operation they are 41, 42 and 43, in date order.
On success "Operation successfully completed" appears, the wizard closes and you are back in Files Maintenance. If the program option Activate log file is on, the program adds a log record with the note "- Renumber Entries" (Log File). If the database refuses the numbering command, the program shows no error message and the success message appears: check the numbers after the operation.
Messages
| Message | Wizard | Why it appears | What to do |
|---|---|---|---|
| Must specify at least one bill form | Bills | You clicked Start and no type is ticked in Invoices. | Tick at least one type. |
| Can't continue. The stating date is prior to the date of the period's opening | Entries | From is before the start of the financial period. | Choose a date inside the period. |
| Can't continue. The stating date is bigger than the date of the period's ending | Entries | From is after the end of the financial period. | Choose a date inside the period. |
| Can't continue.Kindly select the entry form | Entries | No type is ticked in Entries and Renumber the manual entry is not ticked. | Tick a type or the option. |
| Database is Opened By Users : … Please check that all users logged out then try again. | Both | Another user is working on the file. The message lists their names. Then "An error was encountered while performing the operation." appears. | Ask them to leave, then click Start again. |
| No movement found in the specified period | Both | There is no bill (or voucher, with Renumber the manual entry not ticked) on or after the start date in the ticked types. Nothing changed, and the wizard stays open. | Change the date or the types. |
| Error In Stored Proc: … | Bills | The database refused the numbering command. The message shows the command. Then "An error was encountered while performing the operation." appears. The numbers return to what they were. | Try again. If the error repeats, contact technical support and send the text of the message. |
| Operation successfully completed | Both | The operation ended. | Close the message. |
| Are you sure you want to exit and cancel the maintenance operation? | Both | You clicked Cancel before Start. | Yes to leave, No to continue. |
Related
- Renumber bills and entries
- Renumber bills: the wizard from the bills side, and how it calculates the numbers.
- Run files maintenance
- Files maintenance operations
This page applies to alameen ERP 10, version 10.1.79.764.