Module StockMonitor
Description
StockMonitor provides exhaustive monitoring of all stock movements in Dolibarr. It captures 100% of stock movements with full context including stack traces, HTTP request details, and user information. Ideal for auditing, debugging stock discrepancies, and monitoring warehouse activity.
Key Features
- Complete movement capture — Monitors all stock movements via Dolibarr triggers (STOCK_MOVEMENT)
- Full context logging — Records stack trace, HTTP method, URL, user agent and user ID for every movement
- Advanced search — Filter movements by product, warehouse, date range, movement type (entry/exit), and source module
- Multi-warehouse support — Proper handling of multiple warehouses with warehouse-specific filtering
- Prefix detection — Automatic product reference prefix analysis to identify product families
- Export — Export filtered movement data to Excel (XLSX), PDF and CSV
- Dashboard statistics — Admin page showing total movements, data volume, and movement trends
- Real-time trigger — No cron needed, movements are captured instantly via Dolibarr's trigger system
Installation
- Download the ZIP file from DoliStore
- Unzip the stockmonitor folder into your Dolibarr /htdocs/custom/ directory
- Go to Home → Setup → Modules and activate "StockMonitor"
- The trigger will automatically start capturing all stock movements
Usage
Viewing movements
- Navigate to Products → Stock Monitor
- Use the filters to search by product, warehouse, date, or type
- Click on any movement to see the full context (source module, stack trace, etc.)
Exporting data
- Apply your desired filters on the movement list
- Click "Export Excel", "Export PDF" or "Export CSV"
- The export respects all active filters
Prerequisites
- Dolibarr >= 16.0
- PHP >= 7.0
- Stock module must be enabled
- Optional: PhpSpreadsheet for Excel export
Links
- Editor website: Nash Web
- Demo: demo.nash-web.com