Regenerate cost entries
This operation rebuilds the cost and stock lines in the entries of bills whose types carry Consider Perpetual Inventory. You need it after you change the cost price in the type or the prices of materials, so that the change reaches the old entries. The pages and fields are in Regenerate Cost Entries: the window.
Before you begin
- Open the company file and sign in. You need the Files Maintenance permission (Run files maintenance). The operation shows when your administration includes accounting and the file does not work in multi-file mode.
- Ask the other users to leave the file (The file reserved for one user).
- Make a backup: you cannot undo the operation after it succeeds (Backup before maintenance).
- If your types use the average price to set the cost, recalculate the bill prices before the operation (Audit materials balances and prices).
- If there are old bills without cost lines, run Regenerate entries first.
After Start the program deletes the cost and stock lines in the entries of the bills and builds them again, and there is no undo. Do not click Cancel to stop an operation that has started: it does not stop it.
Steps
-
Click File > Tools > Files Maintenance, select Regenerate Cost Entries and click Run (Run files maintenance).
-
On the Make a Backup page choose the type and click Next, then click Start on the hard disk page and wait for "Operation successfully completed" (Make a backup). Read the explanation page and click Next.
-
In the Invoices list untick the types whose cost entries you do not want to rebuild. All are ticked when the page opens.
-
Tick Use fixed weighted average price if you want the cost at that price, after you have calculated it.
-
Enter From and To, such as
1-1-2026and31-3-2026. -
Click Start and answer the questions by clicking Yes. The progress bar shows, with the bill being processed above it.
-
When "Operation successfully completed" shows, close the message, then close Files Maintenance so that the other users can sign in.
Result
The cost and stock lines in the entry of every bill in the period of the ticked types are built again, without changing the entry number or its other lines. The balances of the materials and of the accounts are recalculated.
Example: sales bill 20 sells 10 units of a material whose cost price in the type is 15, so its cost entry is 150. You changed the price to 18 and ran the operation, so both lines became 180.
What the operation does not process is in What the operation does not process.
If something goes wrong
| Message | Why it shows | What to do |
|---|---|---|
| No movement found in the specified period | There are no bills in the period for the ticked types. | Change the dates or the types. |
| Some bills have no cost entry … Do you want to continue? | There are bills in the period whose entries have no cost lines. | Click No, run Regenerate entries and try again. |
| Database is Opened By Users : … | Another user works on the file. | Ask them to leave, then click Start again. |
| An error was encountered while performing the operation. | You answered No to one of the questions, 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. |
All messages are in Messages.
Related
This page applies to alameen ERP 10, version 10.1.79.764.