ETL Stock Summary Maintenance

Manages the etl_stock_summary table used by the stock overview dashboard

Automatic Maintenance

The system automatically checks and repairs the stock summary table nightly. Each company is assigned a fixed time slot to distribute load across the day.

Scheduled slot —
Last ran —
Last result —
Gaps found —
Periods rebuilt —
Next run —

Current gaps
Manual Full Rebuild

Wipes and rebuilds the stock summary for a specific warehouse, one month at a time from raw stock rows. Use this after a direct database fix, data import, or if dashboard figures look incorrect.

The dashboard stays usable during the rebuild — it falls back to raw data for any month not yet rebuilt.