calc_reorder_point
Calculates reorder points using demand, lead time, and safety buffer to flag stocked items whose current stock is at or below the threshold, helping identify which items need ordering now.
Instructions
Calculate Reorder Point (ROP = daily demand × (lead time + safety days)) for each stocked item and flag which items need ordering now (current stock ≤ ROP).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Max items to return (default 50) | |
| demandDays | No | Days of history to compute daily demand (default 90) | |
| safetyDays | No | Safety buffer in days (default 7) | |
| leadTimeDays | No | Expected vendor lead time in days (default 14) |