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

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.
Related Documents
- BRD-020 — Warehouse Stock Entry: Administration Console — BR-02, BR-03
- SR-021 — Warehouse Stock Entry Administration Console System Requirements — FR-04 through FR-09
- Architecture — Warehouse Stock Entry: Creation, Approval-Gated Balance Mutation, and Immutable Ledger
- Microservices: inventory-service
- Previous: Step 1 — Transaction Info · Next: Step 3 — Review & Post