Skip to main content

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​

warning

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​

  1. Click File > Tools > Files Maintenance, select Regenerate Cost Entries and click Run (Run files maintenance).

  2. 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.

  3. In the Invoices list untick the types whose cost entries you do not want to rebuild. All are ticked when the page opens.

  4. Tick Use fixed weighted average price if you want the cost at that price, after you have calculated it.

  5. Enter From and To, such as 1-1-2026 and 31-3-2026.

  6. Click Start and answer the questions by clicking Yes. The progress bar shows, with the bill being processed above it.

  7. 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​

MessageWhy it showsWhat to do
No movement found in the specified periodThere 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.

This page applies to alameen ERP 10, version 10.1.79.764.