From 13f1b524b077fc3f6766a94f1b428c8c8d08254c Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 7 Jul 2026 11:26:19 +0000 Subject: [PATCH] Cashup: show Newbook reported cash target + variance in Cash Takings section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mirrors the float count variance pattern — once Newbook data is loaded, shows the reported cash amount and the counted vs reported variance directly beneath the Cash Takings header. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/DailyCashUp.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/DailyCashUp.tsx b/frontend/src/pages/DailyCashUp.tsx index c5e730e..a9d302e 100644 --- a/frontend/src/pages/DailyCashUp.tsx +++ b/frontend/src/pages/DailyCashUp.tsx @@ -356,10 +356,23 @@ export function DailyCashUp({ user }: Props) { {/* Cash denomination — Takings */} -
+

Cash Takings

{fmtGBP(denomTotal(takings))}
+ {newbookTotals && (() => { + const cashVariance = denomTotal(takings) - newbookTotals.cash + return ( +
+ Reported: {fmtGBP(newbookTotals.cash)} + 0 ? 'var(--success)' : 'var(--danger)' }}> + {Math.abs(cashVariance) < 0.01 + ? 'In balance' + : (cashVariance > 0 ? '+' : '') + fmtGBP(Math.abs(cashVariance)) + ' variance'} + +
+ ) + })()} updateDenom(takings, setTakings, i, f, v)} disabled={isFinal} tabBase={0} />