This example explains the standard sales-history stock-level calculation and how those levels can feed automatic purchasing. Report options, location settings and purchasing multiples can change the final result.
Formula terms
| Term | Meaning or calculation |
|---|---|
| Total days (TOT.DAYS) | Selling days in the selected sales periods. |
| Quantity sold (QTY.SOLD) | Quantity sold during the selected sales periods. |
| Sold per day (SOLD.DAY) | QTY.SOLD / TOT.DAYS |
| Order frequency (OF), lead time (LT), safety stock (SS) | Values from the vendor record, expressed in business days. |
| Order level (OL) | SOLD.DAY × (OF + LT + SS), rounded to a whole unit. |
| Stock level (SL) | OL + the whole-unit portion of (SOLD.DAY × (LT + SS)) + Stock Level Add Value. |
| Quantity available (QA) | Quantity on hand (QOH) + quantity on order (QOO) − quantity backordered (QBO) |
| Quantity to order (QTO) | SL − QA |
Stock Level Add Value comes from the location’s PO Setup and defaults to 1. A selected OL/SL multiplication factor is applied afterward. Sales-history filters, lost-sales percentage, leading-zero locks and vendor/location overrides also affect the calculation. Review the stock-level report before updating inventory.
Example
This example uses Add Value 1, no OL/SL factor, and the quantities shown below.
| Sales history | Vendor settings | Inventory quantities |
|---|---|---|
| Total days: 100 | Order frequency: 30 days | On hand: 70 |
| Quantity sold: 200 | Lead time: 14 days | On order: 20 |
| Sold per day: 2 | Safety stock: 3 days | Backordered: 10 |
Order level: 2 × (30 + 14 + 3) = 94
Stock level: 94 + (2 × (14 + 3)) + 1 = 129
Quantity available: 70 + 20 − 10 = 80
Quantity to order: 129 − 80 = 49
The calculated order is for 49 items. If the part comes in standard packs of 10 and the Percent Standard Pack setting in PO Setup calls for rounding this quantity up, the purchase order quantity is 50.
Order frequency, lead time, and safety stock use business days. The number of business days per week comes from Location Entry in System Management.