Demand Replenishment
Demand Replenishment proposes the quantities to order from vendors based on the actual demand for items, that is, what was sold (or transferred) in recent weeks at each location. For each purchases source the program creates a batch with one line per item and location, calculates the quantity needed to cover a number of days, subtracts what is already in stock or on its way and proposes the quantity to order. After review, Process Orders creates the purchase orders (and transfer orders, if needed).
The module includes:
- replenishment parameters in Purchases & Payables Setup, locations, items and purchases sources;
- a periodic calculation (job queue) that summarizes sales and purchases into two item budgets;
- the Demand Replenishment page, with batches, calculation, review and order creation;
- the Demand Replenishment Detail, Demand Replenishment Statistics and Missing Item Worksheet pages.
| Field | Description |
|---|---|
| Replenishment Calc. Weeks | Weights of the weeks used to calculate average demand, comma-separated. The first value is the most recent week. Example: 3,2,1 uses the last 3 complete weeks, weight 3 for the most recent, 2 for the previous and 1 for the oldest. Blank = last week only. |
| Repl. Week of Month Multiplier | Up to four percentages, comma-separated, one per week of the month (days 1-7, 8-15, 16-22, 23-31). The percentage of the week containing the work date increases (or decreases, if negative) the proposed quantities. Example: 10,0,0,-5 adds 10% in the first week and removes 5% in the last. |
| Coverage Days Rounding | Week: coverage days are rounded up to whole weeks (e.g. 10 → 14); Day: rounded to whole days. |
| Replenishment Purch. Budget | Item budget (purchase) where purchases are summarized by vendor. Used to identify critical items. |
| Replenishment Purch. Period | How far back to consider purchases (date formula, e.g. -3M). |
| Replenishment Sales Budget | Item budget (sales) where sales are summarized weekly by item and location. It is the basis of the demand calculation. |
| Replenishment Sales Period | How far back to recalculate on each sales budget update (date formula, e.g. -4W). |
| Replenishment Sales From Date | Starting date the first time the sales budget is built; the program never goes before this date. |
| Replenishment Critical Threshold % | If the percentage of quantity received versus quantity requested from the main vendor is below this threshold, the item is marked Critical. 0 = no item marked. |
| Replenishment Missing Threshold % | If missing quantities (requested by customers but not delivered) exceed this percentage of the sold quantity, the item's demand is considered unreliable (see below). 0 = check disabled. |
| Repl. Last Supplies Period | If set, items whose last supplies date is before this period are not proposed. |
| Replenishment Transfer Order Type | Order type assigned to transfer orders created by replenishment. |
| Field | Description |
|---|---|
| Replenishment Order | Order in which locations appear in the batch lines. |
| Additional Coverage Days | Days added to the calculated coverage for this location. |
| Repl. Base Sales | Sales (shipments and invoices) of this location are part of demand, and the location gets replenishment lines. |
| Repl. Base Transfers | Outbound transfers from this location to other locations count as demand, and the location gets replenishment lines. |
| Repl. Base Purchases | Purchases of this location are included in the purchase budget (critical items calculation). |
| Field | Description |
|---|---|
| Purchases Source | Purchases source used to replenish the item: only items linked to the source are included in its batch. |
| Order Multiple | If set, the proposed quantity is rounded up to a multiple of this value. |
| Purchase Orders Blocked | The item appears in the batch with the note "Blocked", but its quantity is not added to the group line. |
| Seasonality | Season start dates in DDMM format, comma-separated (e.g. 0104,0110 = April 1 and October 1). See "Seasonality" in the calculation. |
Blocked items, or items whose sales ending date has passed, are not proposed.
These fields exist both on the purchases source and on its location lines: the line value, if set, overrides the source value.
| Field | Description |
|---|---|
| Reorder Cycle | How often orders are placed with this source (date formula, e.g. 1W, 2W). Used by the Next Order option. |
| Last Order Date | Updated automatically when orders are created or the batch is skipped. |
| Coverage Days | Number of sales days the order must cover. |
| Reorder on Monday … Reorder on Sunday | Weekdays on which orders are placed with this source. |
| Minimum Order Amount / Minimum Order Quantity | Order minimums checked when processing orders. |
| Item Multiply | Default multiple for items without their own order multiple. |
| Receiving Location Code | If different from the line's location, goods are purchased for the receiving location and then transferred to the destination location. |
| Lines Grouping | For each item creates a group line with the total, followed by one line per location. |
If the purchases source is set to all locations, replenishment considers every location with Repl. Base Sales or Repl. Base Transfers, even without a specific line.
If item ranking is in use, each ranking code can have a Replenishment Demand Multiplier (multiplies the demand of items in that ranking, e.g. 1.2 = +20%) and an Item Multiply (used when the item has no multiple of its own).
The demand calculation reads the item budgets, which must be updated periodically (usually nightly) with a job queue entry for demand replenishment, with parameter string:
CalculateSalesBudget– updates the sales budget;CalculatePurchaseBudget– updates the purchase budget and recalculates critical items;CalculateBudget– both.
Sales budget. For each week the program sums, by item, customer and location, shipped and invoiced quantities (and outbound transfers from locations with Repl. Base Transfers). For each entry it records the quantity sold, the requested quantity (if the customer asked for more) and the difference as Missing Quantity. The data is then grouped by item, location and week (date = last day of the week), with the number of customers. Each update recalculates only the weeks from the Replenishment Sales Period onwards.
Purchase budget and critical items. The program summarizes the purchases of the period by vendor, flagging the item's main vendor. If, for the main vendor, the received quantity is below the Critical Threshold % of the requested quantity, the item becomes Critical. Example: threshold 80%, 100 units requested, 70 received → 70% < 80% → critical item. Critical items are shown at the top of the batch.
Search for Demand Replenishment. The current batch is shown on opening; Change Batch opens the Demand Replenishment Batches list.
| Field | Description |
|---|---|
| Name / Description | Batch identifier; for batches created by the calculation, the description is the purchases source name. |
| Purchases Source No., Vendor No., Repository No., Purchaser Code | Purchases source, vendor, repository and purchaser of the batch. |
| Last Order Date | Last order date of the source at calculation time. |
| System Created | The batch was created by the replenishment calculation. |
| Created Date/Time | Time of the last calculation. |
| Price List Base | Price list base of the batch. |
- On the Demand Replenishment page choose Calculate Replenishment.
- On the request page, filter purchases source lines (e.g. by source, vendor, location; the purchaser filter defaults to the user's purchaser) and, if needed, items.
- Fill in the options:
| Option | Description |
|---|---|
| Next Order | Calculates only the purchases sources that are due now (see below). |
| Coverage | Default: coverage days of the source/line; Force days: uses the given Coverage Days; Add days: adds the given Coverage Days to the source's; Until date: covers up to Coverage Date (days = coverage date − work date + 1). |
| Coverage Date / Coverage Days | Values used by the coverage options. |
| Group Lines | Blank = follows the source's Lines Grouping; Group / Do not Group force it. |
| Include Items without Demand | Also keeps items with no demand and no inventory at any location (normally removed). |
- Confirm. The program creates (or reuses) one batch per purchases source and purchaser and calculates it.
Next Order. A source is excluded if: it has no reorder cycle; it was already ordered this week; its expected date (last order date + reorder cycle) falls in a future week; or the expected date falls in this week but today is not one of its reorder days. Example: cycle 2W, last order Monday 3rd, reorder on Monday → expected date Monday 17th; in the week of the 17th the source is calculated only on Monday.
For each item of the purchases source, one line is created for each location with Repl. Base Sales or Repl. Base Transfers (plus the group line, if requested). Lines are sorted with critical items first, then by ranking and description. For each line:
1. Coverage days. Starting from the source's days (or the chosen option), the location's Additional Coverage Days are added and the result is rounded according to Coverage Days Rounding.
2. Weekly demand (Demand Quantity). The weighted average of sales over the last complete weeks in the sales budget (the current week is not used), with the weights from Replenishment Calc. Weeks. The weighted average of missing quantities is calculated the same way. No. of Customers refers to the last week.
Example: weights
3,2,1; sales: last week 30, previous 20, the one before 10. Demand = (30×3 + 20×2 + 10×1) / (3+2+1) = 140 / 6 ≈ 23.3 units per week.
3. Seasonality. If the item has a Seasonality date and the coverage period (work date + coverage days) reaches the next season date, demand is calculated on the same weeks of the previous year, at the end of the coverage period, instead of on the latest weeks.
Example: seasonality
0104, work date March 20, coverage 21 days → coverage reaches April 10, past April 1: demand is based on sales in the weeks before April 10 of last year.
4. Unreliable demand. If Replenishment Missing Threshold % is set and missing quantities exceed that percentage of demand (or there are only missing quantities and no sales), demand is considered unreliable: an item that is often missing sells little because it is unavailable, not because it is not needed. In this case demand is recalculated as the weekly average of sales over the last year. If demand is reliable, missing quantities are added to demand (you also order what customers would have bought).
Example: threshold 30%, demand 20, missing 4 → 20% ≤ 30%: demand = 24. With missing 10 → 50% > 30%: unreliable demand, last year's average is used.
Items that allow reservation are excluded from this step: their demand comes from sales reservations (see Get Sales Reservations).
5. Needed quantity. Demand Quantity / 7 × coverage days, rounded up.
Example: demand 24 per week, coverage 14 days → 24 / 7 × 14 = 48.
6. Current situation per location. The program reads: Qty. on Inventory, Qty. on Purchase Order (to receive), Qty. on Transfer Order (inbound) (including goods in transit), Qty. on Transfer Order (outbound), Qty. on Sales Order (to ship) and, if available, Qty. on Store Reservation and Qty. on Quality Check.
7. Substitute items. If an item has a mandatory substitute, its demand, missing quantities, needs and sales orders are moved to the substitute at the same location (flagged as Substitute), and the replaced item's line is not proposed.
8. Quantity to order.
- Requirement = needed quantity + qty. on sales order + qty. on outbound transfer (+ store reservations).
- Subtract qty. on purchase order, qty. on inbound transfer and inventory (if positive); goods in quality check are added back because they are not yet available.
- If the result is positive, it is multiplied by the Demand Multiplier (week of month × ranking) and rounded up; then rounded to the order multiple (item, ranking or purchases source), unless it has already been rounded to a purchase unit of measure through the UoM rounding threshold.
- If the result is negative, the quantity is 0 and the excess is shown in Overstock.
Full example: needed quantity 48, sales orders 5, outbound transfers 0 → requirement 53. Inventory 12, on purchase order 10, inbound transfers 0 → 53 − 22 = 31. Multiplier 1.1 (first week of month +10%) → 34.1 → 35. Order multiple 6 → proposed Quantity 36.
If inventory were 70: 53 − 80 = −27 → Quantity 0, Overstock 27.
9. Cleanup. Unless Include Items without Demand was selected, items with no requirement and no inventory at any location are removed from the batch. Lines with a requirement are flagged as Confirmed.
10. Group lines. With grouping on, the group line shows the sum of the location lines (lines of items with blocked purchase orders do not add their quantity). The description of the location lines becomes the location name.
Receiving location. If a different receiving location code is set for a location, the line shows it in Transfer-from Code: the quantity is ordered for the receiving location and then transferred.
| Field | Description |
|---|---|
| Item No., Description | Item (editable only on manually entered lines). |
| Confirmed | The line has a requirement; also set automatically when the quantity is changed. |
| Vendor Item No., Payment Terms Code | Vendor data. |
| Note | Automatic notes (e.g. "Blocked"). |
| Location Code, Transfer-from Code | Destination location and location to transfer from, if any. |
| Quantity | Quantity proposed by the calculation, editable. |
| Quantity to Handle | Quantity actually ordered by Process Orders. |
| Quantity for Free | Additional free quantity: added to the order line and turned into a discount. |
| Needed Quantity, Demand Quantity | Calculated requirement for the coverage and weekly demand. |
| Qty. on Inventory, Available Inventory | Inventory, and inventory not committed to sales orders, outbound transfers, store reservations and quality check. |
| Qty. on Purchase Order, Qty. on Transfer Order (inbound), Qty. on Transfer Order (outbound), Qty. on Sales Order, Qty. on Store Reservation, Qty. on Quality Check | Location situation (with drill-down to documents). |
| Overstock | Quantity in excess of the requirement. |
| Public Price, Direct Unit Cost, Line Discount %, discounts and charges, Amount, Unit Cost (net), % var. Unit Cost | Line pricing; the variation compares the net cost with the item cost. |
Item Replenishment Factbox (vendor, costs, public price, ranking, critical, bill of material, interchangeables, substitute, next seasonality date, coverage days, no. of customers, demand multiplier), purchase prices, units of measure, Item Weekly Sales Factbox, Item Rolling Sales Factbox, Item Monthly Sales Factbox and availability. The weekly and monthly sales FactBoxes are also available on the item list.
| Action | Description |
|---|---|
| Change Batch | Selects another batch. |
| Skip Batch | After confirmation, deletes the system-created batch without ordering and updates the last order date of the source and its locations; moves to the next batch. |
| Calculate Replenishment | Calculates the batches (see above). |
| Recalculate Replenishment | Recalculates the current batch keeping the items already there (including those added manually). Options: Coverage (Until date / Force days), Coverage Date, Coverage Days, Group Lines (recreates the location lines, which can be filtered), Only New Lines (recalculates only manually entered lines). |
| Get Sales Reservations / Get Store Reservations | Add to the batch the quantities reserved by sales orders or store reservations. |
| Process Orders | Creates the orders (see below). |
| Prices and Quantities › Blank Quantities / Fill Quantities to Handle / Blank Quantities to Handle | Blanks quantities, copies quantity into quantity to handle, or blanks it, on the filtered lines. |
| Prices and Quantities › Apply Price List / Blank Discounts | Reapplies prices and discounts (default, public price or public price without VAT) or blanks discounts. |
| Change Purchases Source | Assigns another purchases source (and its vendor) to the batch and all lines. |
| Change Payment Terms | Sets payment terms on all lines. |
| Comments | Batch comments, copied to the created orders. |
| Statistics (F7) | Totals by location: quantities, amounts, order minimums. |
| Details | Opens Demand Replenishment Detail: all lines of the same item, with Previous / Next to move between items. |
| Item Card, Item Units of Measure, Item Entries (purchase) | Navigation to item data. |
- Enter Quantity to Handle (e.g. with Fill Quantities to Handle) and, if needed, Quantity for Free.
- Choose Process Orders. Options: Document Exchange (sends orders via the source's exchange profile) and Update Price List (adds missing items to the purchases source's active price list).
- Checks: there must be at least one quantity to handle; lines must have a direct unit cost and a vendor. If Minimum Order Quantity or Minimum Order Amount is not reached for a location, the program asks whether to Continue or Skip that location.
The program then:
- creates a purchase order for each combination of location, vendor and payment terms, with the batch's purchaser, source and repository;
- for lines with Transfer-from Code, orders the quantity for the receiving location and creates transfer orders to the destination locations, linked to the purchase order;
- turns free quantity into a discount. Example: 10 units to handle + 2 free → order line of 12 units with an additional 16.667% discount (2/12);
- releases the orders and, if requested, sends them;
- updates the last order date of the source and its locations;
- reduces batch lines by the ordered quantity and deletes those fully ordered. If nothing is left to order, the system-created batch is deleted and the next one is shown.
The Missing Item Worksheet page lists items requested by customers but not delivered, based on the sales budget. Filters: From Date, To Date, Location Code, Purchase Source, Vendor No., Exclude Critical. For each item it shows purchases source, unavailability reason code, whether it is critical, Requested Quantity and Missing Quantity, with links to purchase lines, purchase entries, bin content and item summary.
- Units of Measure – Additional Replenishment Unit: marks the units of measure to show as an additional quantity in the replenishment statistics.
- Purchase order lines – Item Unit Cost and % var. Unit Cost: compare the line cost with the item cost.