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.
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
- Choose a Store, or leave Store blank for all stores.
- Click Run.
- Review the maintenance warning and confirm that other stock activity has been paused for the targeted stores.
- Click Yes to continue.
- Follow the progress messages while IMS recalculates the stock balances.
- 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 source | Effect on quantity |
|---|---|
| Opening / First Quantity | Starting balance for the item/store. |
| Purchases | Adds received quantity. |
| Purchase Returns | Subtracts returned quantity. |
| Stock Transfer In | Adds quantity received by the destination store. |
| Stock Transfer Out | Subtracts quantity sent from the source store. |
| Cash / Credit Sales | Subtracts inventory-item sales. |
| Cash / Credit Returns | Adds returned inventory quantity. |
| Stock Adjustments | Applies the signed adjustment quantity. |
| Stock Depreciation | Subtracts depreciated/write-off quantity. |
Maintenance process
The progress indicator represents the main stages of the rebuild:
| Stage | What happens |
|---|---|
| Preparing Stock Maintenance | IMS prepares the selected stores for recalculation. Keep other stock activity paused for the agreed maintenance window. |
| Calculating Stock Movements | IMS totals inventory movements by Item Code and Store. |
| Adding Missing Item Store Rows | If 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 Balance | The current quantity is reset to the stored opening/first quantity for the selected scope. |
| Applying Stock Movements | The summed transaction movements are applied to the opening quantity. |
| Finalizing | IMS 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.