← All tasks

v0.2 Slice H — Receipt big sequence number LOCAL · GATE 1

Standalone H3.5: customers should spot their order at a glance when staff yells the number. The full id stays on the receipt (e.g. POS-06-0003); we add the sequence tail (0003) as a big/bold/centered block right under the store header.

6/6 local checks green. tsc --noEmit clean. Three files touched, no migration, no new dep. Component-render probe verifies the block toggles on presence of sequenceTail and that the existing Order: POS-06-0003 line is preserved.

What the receipt looks like

Probe Cafe ───────── ORDER # 0040 ← 40px, weight 900, centered ───────── Order: POS-06-0040 16/05/2026 10:00 Served by / បម្រើដោយ: Sokha ───────── មុខទំនិញ / Items ...

The big block sits between the store header and the first divider. When the receipt is built from a historical fetched order whose API response shape predates this slice (no sequenceNo), the block silently doesn't render — old reprints look identical.

How the data flows

Checks — 6/6

Raw: 01-probe.json · result.json

Files changed (3, no migration, no new dep)

components/receipt/khmer-receipt.tsx · lib/native-receipt.ts · app/api/cafe/orders/[orderId]/route.ts