Regenerate Entries
The Regenerate Entries wizard deletes the entries that were generated for bills and generates them again from the current settings of the bill types and the current materials accounts. It also rebuilds the entries of vouchers and commercial papers in the same period. This page explains its two pages with their fields, buttons and messages, and what the operation does. The steps are in Regenerate entries.
After Start the wizard works on the whole file in one go, and there is no undo once it succeeds. Make a backup before you begin, and ask the other users to leave the file.
Opening the wizard
- Open File > Tools > Files Maintenance, select Regenerate Entries and click Run. The window and its warning frame "This operation is dangerous …" are in Run files maintenance. The frame shows for every operation whose severity is above low; this operation has the highest severity.
- You can also start it from the arrow beside Files Maintenance on the Tools page, if you added it to the favorites (Favorites), from a Maintenance tile on the desktop (Add a tile to the desktop), and from Quick Launch search.
- The operation shows in the list when your administration includes accounting and the file does not work in multi-file mode (Available maintenance).
- You need the Files Maintenance permission to open the window. Users Management > Operations also lists a permission named Regenerate Entries. The program checks it for the desktop tile only, so the tile is hidden from users who lack it. It does not check it when you start the operation from the window, from the favorites menu or from Quick Launch search.
The explanation shown in the list
The Files Maintenance list shows the name of the operation and under it the explanation: "This operation will delete entries automatically generated from bills, then re-generate them according to the new materials accounts set in bills properties and materials cards and groups cards."
The backup page
The first page of the wizard is the Make a Backup page. It shows before anything else in this wizard. Its types and fields are in Make a backup. After the backup, or after you choose not to make one, the explanation page shows. How the pages and buttons work, and the cancel question, are in How maintenance wizards work.
The explanation page
A read-only page with no fields. Its header says "Regenerate Entries", and under it are two paragraphs, each with an icon beside it:
- "This operation will regenerate entries previously generated by selected bills in the selected period according to the current settings of bills properties and materials accounts."
- "If you adopt the perpetual inventory method in one bill form with weighted average pricing policy, these bills entries will be re-generated with the average price on these bills (we recommend in this case that you recalculate the prices of the bills before this operation)."
| Button | What it does |
|---|---|
| Next | Goes to the page where you choose types and period. |
| Back | Returns to the backup page. |
| Cancel | Asks "Are you sure you want to exit and cancel the maintenance operation?" and closes the wizard on Yes with nothing changed. |
| Help | Opens the help topic of the page, if there is one. |
The last page: types and period
The title of the page is "Regenerate Entries", and at the top it says "Select the period, bills and commercial papers types to regenerate entries for. Click "Start" to begin."
The lists
Every list has a check box for each type, and all of them are ticked when the page opens unless stated. There is no button to tick or untick all.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Invoices | The bill types whose bills' entries the program regenerates in the period. | No | Shows the bill types you have the permission to browse, then the standard bills such as the opening inventory (the input of ready materials and the output of raw materials need the permission to browse manufacturing operations), then types that other parts of the program add, if there are any. The program removes from the list the types that carry Doesn't Generate Entry. When it opens, the types that carry both Generates Entry Automatically and Auto Posting to Accounts are ticked, and the types that lack one of them are not. |
| Entries | The voucher types whose vouchers' entries the program rebuilds. | No | Shows the voucher types you have the permission to browse, all ticked. The list does not include Journal Entry. |
| Commercial Papers | The commercial paper types whose papers' entries the program regenerates. | No | Shows every commercial paper type in the file, all ticked. The program hides the list if the file defines no paper type, and its caption Commercial Papers stays on the page. |
| Notes | The credit and debit notes whose entries the program regenerates. | No | Its items show when the Saudi tax system is on; otherwise only the caption Notes stays, with no list. It has two ticked items: Credit Note and Debit Note. |
Under the Invoices and Entries lists 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. The groups are defined in Forms groups.
If you have the permission to browse no bill type, the Invoices list is hidden, the option Reset the contra account ( for brief entries ) is not ticked, and the items of Notes do not show.
The program keeps the commercial paper types you ticked each time you click Start or Back, until you close the program, and processes them in the next run even if you untick them now. To process fewer types, close the program, open it again and run the operation.
Options
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Reset the contra account ( for brief entries ) | The program resets the contra account in the entries of the bills whose types carry Brief Entry. | No | Ticked when the page opens. It affects bills only, not vouchers or papers. |
| Use fixed weighted average price | The program values the cost and stock lines of the bills whose types carry Consider Perpetual Inventory with the fixed weighted average price of the material on the date of the bill, instead of the cost price set in the type. | No | Not ticked when the page opens. You need to calculate the fixed weighted average price first (Calculate fixed weighted average). |
Period
| Field | Description | Required | Values and rules |
|---|---|---|---|
| From | The first day of the period. | Yes | Starts with the opening date of the file. Example: 1-1-2026. |
| To | The last day of the period. | Yes | Starts with today's date. Example: 31-3-2026. How the field works is in Date fields and calendar. |
The program does not compare the two dates on this page. If the first is after the second it finds no movement and shows "No movement found in the specified period".
Buttons and status line
| Button | What it does |
|---|---|
| Start | Starts the operation and asks the confirmation questions listed in What the operation does. |
| Back | Returns to the explanation page. The lists, options and dates return to their values at opening. |
| Next | Disabled on this page. |
| Cancel | Before Start: asks "Are you sure you want to exit and cancel the maintenance operation?" and closes the wizard on Yes. While it runs: see Cancel while it runs. |
| Help | Opens the help topic of the page, if there is one. |
While it runs the progress bar shows, with a status line above it. The line first says "Preparing- Please wait...", then the bill type name and the number of the bill being processed, followed by "Estimated remaining time" and a time, then "Completing Process - Please Wait...". It shows the names of the commercial papers while it processes them.
What the operation does
The program first makes three checks, then works in the order below, all in one database transaction.
Before processing
- Other users: if someone else is in the file, a list of the users signed in to the file, you included, shows and the operation ends with "An error was encountered while performing the operation.".
- Movement: the program looks for bills dated in the period in the ticked types, vouchers and commercial papers in their ticked types, and notes (with the Saudi tax system). If it finds none it shows "No movement found in the specified period" and nothing changes.
- Opening inventory: if the opening inventory type is ticked and has entries in the period, the program asks "The entries generated from the opening inventory bill will be deleted during maintenance, are you sure?". Yes continues. No stops the operation with "An error was encountered while performing the operation." and nothing changes.
Bills
- The program asks "This operation will delete the entries for the selected bill in the selected period and regenerate entries for them with current settings of bill properties." then "Are you sure?". The default button is No. Yes continues. No stops the operation with "An error was encountered while performing the operation." and nothing changes.
- It prepares the bills: every bill in the period of the ticked types that is not cancelled in e-invoicing and whose type generates the entry automatically or that already has an entry. It orders them by date, then number.
- If a type forces a cost center and a bill has none, the program asks "There are invoices or entries have no cost center and the cost center has been enforced in their characteristics". If a type forces a customer and a bill has none, it asks "There are invoices and entries with no specified client in its characteristics". Yes continues. No stops the operation with "An error was encountered while performing the operation.".
- For each bill that has an entry, the program regenerates the entry:
- It deletes the old entry and generates a new one from the settings of the type and the current materials accounts. The rules for building the entry are in How bills work.
- The entry keeps its number. A posted entry stays posted with its posting date, and an unposted one stays unposted even if the bill type posts automatically.
- A bill that has no entry gets none here. Use Generate entries and post bills for it.
- The program unlinks the bill from its payments and links them again after generating the entry. For a link it cannot restore, it adds a line to the errors window with the text "Extra links" and the bill (Error window).
- If the type carries Auto Post to Warehouses, the bill is posted to the warehouses if it was not posted.
- If the database refuses to generate the entry of one bill, the program goes on with the next bills. It first shows the error message the database returned, except when the database rejects the command outright.
- If the Gulf tax system is on and the program skipped bills in closed tax periods, "Some bills in closed tax periods have no maintenance performed on them" shows after the bills are processed.
Commercial papers, vouchers and notes
- Commercial Papers: for each paper in the period of the ticked types that has one entry only, the entry of its issue, the program deletes the entry and generates it again with the same number. A paper on which another operation was done (so it has an entry of another kind), or that has a second account set, is not processed.
- Entries (vouchers): for each voucher in the period of the ticked types the program rebuilds its entry: the line that is the contra of the account in the voucher header, and the value added lines for the voucher lines whose account uses value added. In a file with replication sources the program skips a voucher that another source issued, as in What the operation does not process.
- Notes (with the Saudi tax system): the program regenerates the entry of each note in the period and posts the new entries. The entry statement is "Credit Note No. … generated from invoice … No. …" or "Debit Note No. … generated from invoice … No. …". The program does not process the notes whose e-invoice status prevents it.
At the end
- The program recalculates the balances of the accounts from the posted entries, as Audit Accounts Balances does.
- It shows the notes that the operation recorded in the error window. If the operation recorded notes that the program does not show, the message "Checking files completed successfully No errors." shows.
- The program commits the changes, "Operation successfully completed" shows, and the wizard page closes and you are back in Files Maintenance.
What the operation does not process
| Case | What happens |
|---|---|
| A bill outside the period or outside the ticked types | Not touched. |
| A bill without an entry | No entry is generated and nothing changes. |
| A bill whose type requires approvals and whose approvals are not complete | Its entry does not change (Require approvals on a form). |
| A bill canceled in Turkish e-invoicing, canceled or invalid in Egyptian e-invoicing, or in draft state in Saudi or Syrian e-invoicing | The program does not regenerate its entry. The old entry stays. |
| A file with replication sources, and a bill or voucher issued by another source | Its entry is not regenerated unless the program option "Replication system - Generate the others invoices entries ( by source code )" is on. |
| The Gulf tax system is on, and the bill is dated in the last closed tax period or before it | Its entry does not change. |
Cancel while it runs
Unlike most maintenance wizards, Cancel stays enabled while the operation runs. If you click it the question "Are you sure you want to exit and cancel the maintenance operation?" shows, and on Yes the program disables the button. The program does not stop the operation on this request: it goes on until it ends and then shows its result. Do not click the button to stop an operation that has started.
What the program records
If the program option Activate log file is on, the program adds a log record with the note "- Regenerate Entries" after it checks for other users and before it processes, whether the operation succeeds or finds no movement. The record shows in the Log File, on the Maintenances Log page (Log File). It then adds a second record with the note "- Audit Accounts Balances" when it recalculates the balances at the end.
Messages
| Message | Why it shows | What to do |
|---|---|---|
| Database is Opened By Users : … Please check that all users logged out then try again. | Another user works on the file. The message lists every user signed in to the file, you included. "An error was encountered while performing the operation." follows. | Ask them to leave, then click Start again. |
| No movement found in the specified period | There are no bills, vouchers or commercial papers in the period for the ticked types. Nothing changes. | Change the dates or the types. |
| The entries generated from the opening inventory bill will be deleted during maintenance, are you sure? | The opening inventory type is ticked and has entries in the period. | Yes to continue, or No and the operation ends with an error and nothing changes. |
| This operation will delete the entries for the selected bill in the selected period and regenerate entries for them with current settings of bill properties. Are you sure? | At least one type is ticked in Invoices, even if it has no bills in the period. The default button is No. | Yes to continue, or No and the operation ends with an error and nothing changes. |
| There are invoices or entries have no cost center and the cost center has been enforced in their characteristics | A bill in the period has a type that forces the cost center and the bill has none. | Yes to continue, or No to stop the operation. |
| There are invoices and entries with no specified client in its characteristics | A bill in the period has a type that forces the customer and the bill has none. | Yes to continue, or No to stop the operation. |
| Are you sure you want to exit and cancel the maintenance operation? | You clicked Cancel. | Before Start: Yes to exit, No to stay. After Start see Cancel while it runs. |
| Extra links | A line in the errors window: a bill for which the program could not link some payments again after generating its entry. | Open the bill and review its links to payments. |
| Checking files completed successfully No errors. | The operation recorded notes that the program does not show. | No action. |
| Some bills in closed tax periods have no maintenance performed on them | The Gulf tax system is on and there are bills in closed tax periods. | No action. The operation was done for the other bills. |
| Operation successfully completed | The operation ended and the changes are committed. | Close Files Maintenance so that the other users can sign in. |
| An error was encountered while performing the operation. | You answered No to one of the questions, or another user was found, or the database refused a command. The program restores the file to its state before the run. | Read the message before it and run again. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.