Skip to content

fix(dashboard): Cashier Session Report shows real variance (#380) - #383

Merged
telivity-otaip merged 2 commits into
mainfrom
cursor/fix-cashier-session-report-variance-354f
Oct 15, 2026
Merged

telivity-otaip merged 2 commits into
mainfrom
cursor/fix-cashier-session-report-variance-354f

Conversation

@telivity-otaip

Copy link
Copy Markdown
Collaborator

Fixes #380.

Problem: The Cashier Session Report bound session.variance / session.countedBalance, but cashierReport returns those fields on the report root. Variance always fell through to $0.00.

Fix: Derive countedBalance and variance from the report root, with a fallback to session.* for older response shapes, keeping the — and 0.00 defaults.

Test: Added Cashier.test.tsx covering the current API shape ($-47.50 / $350.00) and the nested fallback.

Open in Web Open in Cursor 

cashierReport returns countedBalance and variance on the report root,
not under session. Read those fields with a session.* fallback so
Variance no longer always shows $0.00.

Fixes #380

Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
@telivity-otaip
telivity-otaip marked this pull request as ready for review October 15, 2026 20:28
Cashier.test.tsx added 2 cases / 1 file; CI gate requires README and
docs/test-stats.json to match (2476 / 287).

Co-authored-by: telivity-otaip <telivity-otaip@users.noreply.github.com>
@telivity-otaip
telivity-otaip merged commit d1c5b9c into main Oct 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cashier Session Report shows $0.00 variance when API returns a real variance

2 participants