Renumber bills
The Renumber Bills wizard renumbers the bills of the types you choose from a date you pick, by the date of each bill, so the gaps that deleted bills leave between the numbers disappear. The wizard runs from the Files Maintenance window.
Before you begin
- The wizard shows in Files Maintenance when the file does not work in multi-file mode, neither the Gulf nor the UAE tax system is on, and the option "Force bill number by bill type" is off (Available maintenance).
- You need what Run files maintenance explains. The program checks no permission named after the operation when you run it from the Files Maintenance window, the favorites menu or Quick Launch. The Renumber Bills permission in Users Management > Operations only decides whether the operation's tile shows on the desktop.
- Ask the other users to leave the file. If the program finds another user when you click Start, it refuses to run.
- Take a backup. You cannot undo the operation after it ends. The wizard itself shows the backup page first (Back up a company file).
- Tell those who rely on bill numbers: the numbers saved in the bills change, and the program does not change what was printed, sent or written outside. Entry numbers do not change. They have their own operation named Renumber Entries.
Steps
Open the wizard and take the backup
-
Click File, then Tools, then Files Maintenance. Select Renumber Bills and click Run. The warning box "This operation is dangerous …" shows when you select the operation. The details are in Run files maintenance.
-
On the Make a Backup page choose the type of backup, then click Next:
- To Hard Disk: selected when the page opens.
- To Removable Disk: its page and steps are in Make a backup.
- Don't Make a Backup (not recommended): the program goes to the next page without asking anything.
If your key is a cloud subscription, a page with the same title replaces this one. It says that the files do not support the manual backup, tells you to request the backup from the service provider, and asks "Are you sure you want to continue maintenance process?". Click Next to continue.
-
If you chose the hard disk, the Make Backup Copy on Hard Disk page shows. The program fills the Notes field with the file, server, computer, user, program version and date. Change it or leave it, then click Start. When the copy ends the program shows "Operation completed successfully" and goes to the next page. If the copy fails you stay on the page. Next is disabled on it.
You can click Cancel before Start on any page. The program asks "Are you sure you want to exit and cancel the maintenance operation?". Click Yes to leave with no change to the bills.
Numbering
- The Renumber Bills page shows. It explains that the operation "will renumber bills according to their dates and will remove gaps between numbers", and asks you to set the start date and the numbering options.
- In the Invoices list tick the bill types you want to renumber. All the types are ticked when the page opens, so untick what you do not want.
- In Start Numbering from enter the first day to renumber from, for example
1-1-2026. The numbers of the bills before this date do not change. The bills after it all enter the operation, and there is no end date. How the date field works is in Date fields and calendar. - Tick Serial Numbering for all Selected Types if you want one series of numbers that runs through all the ticked types. Leave it unticked so that each type has its own series.
After Start the program works at once and asks for no confirmation. It permanently changes the bill numbers saved in the file, and there is no undo after the run ends. Check the types and the date before you click, and make sure the backup is ready.
- Click Start. The progress bar shows. Cancel is disabled during the run, so you cannot stop it.
- On success the message "Operation successfully completed" shows and the wizard page closes. You return to Files Maintenance. Close it so that the other users can sign in.
Fields
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Invoices | List of the bill types whose bills are renumbered. | Yes (at least one type) | The list shows the bill types you have the permission to browse. All are ticked when it opens. If Turkish e-invoicing is on, its types do not show. |
| Start Numbering from | The date of the first bill to renumber. | Yes | Starts with today's date. The field cannot be empty. There is no end date. |
| Serial Numbering for all Selected Types | Makes the numbering of all the ticked types one series instead of a series for each type. | No | Not ticked by default. |
| Button | What it does |
|---|---|
| Back | Returns to the backup page. |
| Start | Checks that you ticked a type, then starts the operation. |
| Cancel | Asks "Are you sure you want to exit and cancel the maintenance operation?", then closes the wizard. Disabled during the run. |
How the program numbers
The program numbers the bills of each ticked type that are dated on the start day or after it, as follows:
- Order: by date, and when dates are equal by the current number of the bill.
- Branches: if the file has branches, each branch is numbered on its own.
- Starting number: it is calculated from the highest number held by the bills of the type before the start date, in the same branch, or from zero if there are no bills before it. If you tick the one serial numbering, it is calculated from the highest number among the bills of all the ticked types before the start date.
- One series: when you tick the one serial numbering, the program numbers the bills of one type and then continues with the next type, without returning the counter to the starting number. Within each type the bills are in date order, not in date order across all the types.
- What changes: the bill number, and the number the program keeps in the link between the bill and its entry. Text already written inside the entries does not change.
The numbering happens in one transaction: if the program stops because of an error, the numbers return to what they were.
What the program logs
If the program option Activate log file is on, the program adds, after the numbering succeeds, a log record with the note "- Renumber Bills". The record is not saved if the database refused the numbering command. It shows in the Log File, on the Maintenances Log page (Log File).
Result
- The ticked bills carry the new numbers. Open a bill and check.
- You cannot undo the operation. To return to the old numbers, restore the backup.
If something goes wrong
| Message | Why it shows | What to do |
|---|---|---|
| Must specify at least one bill form | You ticked no type in the Invoices list. | Tick at least one type, then click Start. |
| Database is Opened By Users : … Please check that all users logged out then try again. | Another user works on the file. The message lists their names. The message "An error was encountered while performing the operation." follows it. | Ask them to leave, then click Start again. |
| No movement found in the specified period | There are no bills of the ticked types on the start date or after it. Nothing changed. | Change the date or the types. |
| Error In Stored Proc: … | The database refused the numbering command. The message shows the text of the command. The message "An error was encountered while performing the operation." follows it. The numbers return to what they were. | Try again. If the error repeats, contact support and send the text of the message. |
| Are you sure you want to exit and cancel the maintenance operation? | You clicked Cancel before Start. | Click Yes to leave, or No to continue. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.