IMS Documentation

Stock Maintenance

Stock Maintenance rebuilds IMS on-hand quantities from the transaction history. It starts from each item/store opening quantity and reapplies purchases, purchase returns, stock transfers, sales, sales returns, stock adjustments and stock depreciation to restore the calculated stock balance.

Open the screenTools → Stock Maintenance.
IMS Stock Maintenance screen with Store selection and Run button
Stock Maintenance can rebuild one selected store or the full IMS stock balance.
Operational maintenanceStock Maintenance can take time. Run it during an approved maintenance window and coordinate a pause in other stock activity. Do not rely on this screen alone to prevent other users from processing transactions during the run.

Select one store or all stores

Enter a Store ID to rebuild one location. IMS validates the ID and displays the store name beside it.

Leave the Store field blank to run Stock Maintenance for all stores. This is the broader maintenance operation and can take longer because IMS recalculates every applicable item/store balance.

Run Stock Maintenance

  1. Choose a Store, or leave Store blank for all stores.
  2. Click Run.
  3. Review the maintenance warning and confirm that other stock activity has been paused for the targeted stores.
  4. Click Yes to continue.
  5. Follow the progress messages while IMS recalculates the stock balances.
  6. Wait for the Done confirmation, then check the targeted stores' transaction settings before resuming normal activity.

The screen prevents a new run when IMS Autos/maintenance blocking rules are active or when the IMS database connection is unavailable.

What IMS recalculates

IMS rebuilds each item/store quantity from its opening balance and inventory transactions.

Stock sourceEffect on quantity
Opening / First QuantityStarting balance for the item/store.
PurchasesAdds received quantity.
Purchase ReturnsSubtracts returned quantity.
Stock Transfer InAdds quantity received by the destination store.
Stock Transfer OutSubtracts quantity sent from the source store.
Cash / Credit SalesSubtracts inventory-item sales.
Cash / Credit ReturnsAdds returned inventory quantity.
Stock AdjustmentsApplies the signed adjustment quantity.
Stock DepreciationSubtracts depreciated/write-off quantity.

Maintenance process

The progress indicator represents the main stages of the rebuild:

StageWhat happens
Preparing Stock MaintenanceIMS prepares the selected stores for recalculation. Keep other stock activity paused for the agreed maintenance window.
Calculating Stock MovementsIMS totals inventory movements by Item Code and Store.
Adding Missing Item Store RowsIf a transaction exists for an Item/Store combination that does not yet exist in the stock-balance table, IMS creates the missing row using the item's current cost.
Adding Opening BalanceThe current quantity is reset to the stored opening/first quantity for the selected scope.
Applying Stock MovementsThe summed transaction movements are applied to the opening quantity.
FinalizingIMS saves the recalculated balances and updates the targeted stores' transaction settings. Review those settings before resuming transactions.

Missing item/store balances

When the selected store is missing an item balance, Stock Maintenance can restore the item/store balance as part of its supported recalculation. Review the resulting figures and job status before relying on the balance.

Completion and store settings

After Done, review the balances in Stock Level and confirm which stores should accept transactions. A single-store run enables transactions for that store. An all-store run re-enables the stores that were enabled at the start; if none were enabled, it enables all stores.

If an error appears, record its message and check the balances and store settings with your administrator before starting another run.

IMS Autos

The Stock Maintenance screen itself is the manual maintenance tool. When IMS Autos is authorized, enabled and configured, the same stock-maintenance requirement can be scheduled as part of the regular automated maintenance process, reducing the need to run it manually as a routine task.

When to use the manual screenManual Stock Maintenance is most useful when an authorized administrator needs to rebuild and verify one store immediately, or when a full recalculation is required outside the normal automated schedule.