Skip to content

Mapping fields & KPIs

KPI strip

KPIDefinition
Products MappedCount of product_suppliers rows for the selected supplier; sublabel shows distinct brand count
Active SKUsMapped products where catalogue is_active is true; sublabel shows inactive count if any
Avg DiscountMean of non-null discount % on mappings
Avg MarginMean of (retail − cost) / retail × 100 where both prices exist

Table columns

ColumnSourceEditable inline
SKUProduct masterNo
Product NameProduct master; Inactive badge if is_active = falseNo
BrandProduct → brandNo
Supplier SKUMappingYes
ReorderMapping (reorderlevel, whole number string)Yes
Cost · PKRProduct cost_priceNo
Retail · PKRProduct priceNo
MarginCalculated (retail − cost) / retail; colour: green ≥25%, amber <15%, default otherwiseNo
DiscountMapping %Yes
ActionsEdit · Save · Cancel · Remove

Context bar

ElementSource
Initials avatarFirst letters of supplier name
Namesuppliers.name
Status pillsuppliers.is_active
Typesuppliers.supplier_type (Manufacturer, Distributor, …)
LocationLast segment of supplier address, if set

Validation (inline & add dialog)

FieldRule
Reorder levelOptional; if set, must match ^\d+$
DiscountOptional; if set, 0–100 inclusive