From 4cbe68ebf7881a4a65f976816ef8481c04a7a066 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Wed, 1 Jul 2026 21:24:41 +0000 Subject: [PATCH] Vertical tab order in denomination grids MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tab now moves down the Qty column first (£50→£20→...→1p), then down the Value Override column, for both takings and float grids. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/DailyCashUp.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/DailyCashUp.tsx b/frontend/src/pages/DailyCashUp.tsx index f996801..6074b9c 100644 --- a/frontend/src/pages/DailyCashUp.tsx +++ b/frontend/src/pages/DailyCashUp.tsx @@ -232,7 +232,7 @@ export function DailyCashUp({ user: _user }: Props) {

Cash Takings

{fmtGBP(denomTotal(takings))} - updateDenom(takings, setTakings, i, f, v)} disabled={isFinal} /> + updateDenom(takings, setTakings, i, f, v)} disabled={isFinal} tabBase={0} /> {/* Float (collapsible) */} @@ -248,7 +248,7 @@ export function DailyCashUp({ user: _user }: Props) { {showFloat && (
- updateDenom(float, setFloat, i, f, v)} disabled={isFinal} /> + updateDenom(float, setFloat, i, f, v)} disabled={isFinal} tabBase={24} />
)} @@ -387,11 +387,13 @@ export function DailyCashUp({ user: _user }: Props) { ) } -function DenomGrid({ denoms, onChange, disabled }: { +function DenomGrid({ denoms, onChange, disabled, tabBase = 0 }: { denoms: Denomination[] onChange: (idx: number, field: 'quantity' | 'value_entered', val: string) => void disabled: boolean + tabBase?: number }) { + const n = denoms.length return (
@@ -410,6 +412,7 @@ function DenomGrid({ denoms, onChange, disabled }: { onChange={e => onChange(i, 'quantity', e.target.value)} disabled={disabled} placeholder="0" + tabIndex={tabBase + i + 1} style={inputSt} /> onChange(i, 'value_entered', e.target.value)} disabled={disabled || row.quantity !== null} placeholder="—" + tabIndex={tabBase + n + i + 1} style={{ ...inputSt, opacity: row.quantity !== null ? 0.4 : 1 }} />