Stock Entry Admin UI — Wizard Step 2 — Variant Matrix Entry

By Engineering Team•October 8, 2026•3 min read

Wizard Step 2 — Variant Matrix Entry, showing the selected product banner, the color/size quantity grid, and the matrix summary stats

What the admin sees

Step 2 of 3, captioned “Mapped to: stock_ledger_entries” (VariantMatrixEntryPage.tsx). Before a product is chosen, the page shows an empty state (“No Base Product Selected”) with a product search box. Once a product is selected, a banner shows its name, SKU prefix, and color/size counts, with a “Clear” action to pick a different product.

The matrix below lists one row per color/size combination: SKU Code, Size, Color (with a small swatch dot), Current Stock (the product’s live stock in the warehouse chosen in Step 1), an editable Transaction Qty field, and a continuously-updated Projected stock value. Two mass-action buttons — “+10 to All” and “Zero Out” — sit above the grid, alongside a chip showing which warehouse the figures belong to. Below the grid, four running totals are shown: Modified SKUs, Gross Movement Units, Current Stock Sum, and Post Stock Projected.

For Loss and Damage movements, the quantity field only accepts zero or positive numbers, and the Projected column is colored to make the outward direction visually obvious — the page always collects a positive magnitude for these two types; the sign flip happens only when the movement is actually submitted.

What the admin does here

Searches for and selects the product this movement affects, then types a quantity against whichever color/size cells actually changed — the Current Stock and Projected columns next to each cell let staff self-check the result before moving on, without doing any math themselves. The “+10 to All”/“Zero Out” shortcuts save repetitive typing for a uniform adjustment across every variant. At least one non-zero quantity is required before “Next Step” advances.