Skip to content

Configuration parameters

Desired Inventory Days (DID)

RuleValue
Field labelDays (under Desired Inventory Days (DID))
Range1–90
Default2
FormulaRequired stock (packs) = floor(sales velocity × DID ÷ pack size)
Stored inauto_str_config.did

Top X SKUs filter

RuleValue
Field labelTop X Items
Empty / 0All eligible SKUs with sales history
SetOnly top N SKUs by quantity sold in last 60 days across eligible warehouses
Stored inauto_str_config.top_x

Central warehouse

RuleValue
Field labelSelect Central Warehouse
Supply orderAlways first among sources
InboundNever receives Auto STR transfers inward
OptionalNone (no central warehouse) — all eligible warehouses peer equally
Stored inauto_str_config.central_warehouse_id
Example labels (docs)Central Warehouse, IPD Block B, IPD Block C, OPD Block B, OPD Block C — dummy names in screenshots, not live store names

Eligible warehouses

RuleValue
Minimum participants2 warehouses (including central if outside eligible list)
Checkbox listAll tenant warehouses
Stored inauto_str_config.eligible_warehouse_ids

Supply priority (non-central)

RuleValue
UIDrag handles or ↑↓ on eligible non-central warehouses
OrderAfter central, sources tried in priority order, then by surplus descending
Stored inauto_str_config.warehouse_priority

Scenario B mode

RuleValue
DefaultProportional
WhenTotal system surplus < total deficit for a SKU
EffectEach deficit warehouse gets floor(need × surplus ÷ deficit)
Stored inauto_str_config.scenario_b_mode

Pack conversion (engine)

CalculationRounding
Required packsFloor
Current stock packsCeil (partial packs count)
Transfer outputExact units = packs × pack_size

Persistence

Configuration saves per tenant to auto_str_config. Toast on save: Auto STR configuration saved.