This example shows how sales history can be used to propose Order Level (OL) and Stock Level (SL), followed by a standard quantity-available calculation. Automatic PO generation can use existing levels or other selected methods; it does not always recalculate the levels from this formula.
Sales-based levels
The Stock Levels Based on Sales History procedure uses selected sales, an estimated selling-day count, and the applicable vendor lead time, safety stock, and order frequency. Location-specific vendor values can override the vendor defaults.
| Value | Calculation |
|---|---|
| Sold per day | Selected quantity sold ÷ selling days. |
| Order Level | Sold per day × (Order frequency + Lead time + Safety stock), with the program’s rounding. |
| Stock Level | Order Level + the whole-number result of Sold per day × (Lead time + Safety stock) + the configured Stock Level add-on. |
The older example assumes an add-on of 1; the current program uses a setup value rather than a hardcoded 1. A selected level factor and protected levels can also affect the result. Review the preview before updating levels.
Worked example
| Input | Value |
|---|---|
| Selling days | 100 |
| Quantity sold | 200 |
| Order frequency / Lead time / Safety stock | 30 / 14 / 3 selling days |
| Stock Level add-on | 1 |
| QOH / QOO / QBO | 70 / 20 / 10 |
- Sold per day: 200 ÷ 100 = 2.
- OL: 2 × (30 + 14 + 3) = 94.
- SL: 94 + (2 × (14 + 3)) + 1 = 129.
- Quantity available: 70 + 20 − 10 = 80.
- Suggested quantity: 129 − 80 = 49.
Availability is below the order level in this example. If the applicable standard-pack rule rounds 49 up to a pack of 10, the PO quantity becomes 50.
Why the generated quantity can differ
Purchase Order Setup, source selection, selected locations, alternate OL/SL values, sales-history ordering, purchase quantities, transfer availability, and pack rounding can change or exclude the proposal. Review the generated PO before releasing it.
See Quantity to Order Calculation for a case-lot example and Automatic Generation of Purchase Orders for the workflow.