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.

ValueCalculation
Sold per daySelected quantity sold ÷ selling days.
Order LevelSold per day × (Order frequency + Lead time + Safety stock), with the program’s rounding.
Stock LevelOrder 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

InputValue
Selling days100
Quantity sold200
Order frequency / Lead time / Safety stock30 / 14 / 3 selling days
Stock Level add-on1
QOH / QOO / QBO70 / 20 / 10
  1. Sold per day: 200 ÷ 100 = 2.
  2. OL: 2 × (30 + 14 + 3) = 94.
  3. SL: 94 + (2 × (14 + 3)) + 1 = 129.
  4. Quantity available: 70 + 20 − 10 = 80.
  5. 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.