frontend / api/analytics/metrics / getLowStockCount
Function: getLowStockCount()
getLowStockCount():
Promise<number>
Defined in: src/api/analytics/metrics.ts:69
Fetch count of items below minimum stock threshold. Returns 0 on any error (tolerant).
Returns
Promise<number>
Total count of low-stock items
Example
const count = await getLowStockCount();
console.log(count); // 12