Repository navigation
fix(cash): non-blocking shift carry-over, day-close open-shift guard, and custom Cash drawer math - #1318
Merged
khaira777 merged 2 commits intoOct 23, 2026
Conversation
sattelweb
requested review from
carvalab,
itsbkm and
khaira777
as code owners
October 22, 2026 21:57
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 18 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
khaira777
force-pushed
the
fix/makepos-cash-close-phase1
branch
from
October 23, 2026 02:48
7a73021 to
c41ebb1
Compare
khaira777
force-pushed
the
fix/makepos-cash-close-phase1
branch
from
October 23, 2026 02:55
c41ebb1 to
56aedab
Compare
… and custom Cash drawer math
khaira777
force-pushed
the
fix/makepos-cash-close-phase1
branch
from
October 23, 2026 03:27
56aedab to
88e9213
Compare
Contributor
|
@greptileai review this at apex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /api/cash-sessions/current/close-previewreturnsunpaid_in_shift(count,bill_count,pending_cents, and up to 5sampleorders) withwould_block_close: false.POST /api/cash-sessions/:id/closecloses cleanly (200) even when open or partially paid orders exist from the shift window; those orders remain open and carry over to the next shift whilesessionExpectedCashreconciles only cash payment lines physically collected during the shift.ShiftCloseModaldisplays an informational carry-over notice banner ([data-testid="shift-close-unpaid-warning"],role="status") without disabling the close button.openSessionBlockingDayCloseblocksPOST /api/cash-closureswith409 open_shift_blocks_day_close(and surfacesblockingOpenShiftonGET /api/reports/x-reportand[data-testid="day-close-open-shift-blocker"]inCashCloseModal) whenever any shift opened on or before the targetbusiness_dateis still open, including multi-day stale shifts from prior business dates.'Cash'payment method & partial line-time drawer math:cashDrawerSalesAndRefundsresolves custom'Cash'payment methods viapayment_methods(lower(trim(name)) = 'cash') and attributes cash payment lines by per-line timestamp with index-friendlybillsdate bounds.frontend/src/lib/i18n/messages/*.jsonand updateddocs/reference/api.md.Test plan
npm run test:cash-closures(370/370 passed, including custom'Cash', cross-midnight partial payment lines, and multi-day stale shift2026-06-14->2026-06-15day-close guard)npm run test:cash-sessions(208/208 passed, including non-blocking shift close carry-over preview and same-day open-shift day-close guard)npm run i18n:check(all 24 locales verified)npm run docs:checknpm run lint&npm run lint:budgetnpm run build&npm run build:frontende2e/cash-close-phase1-ui.spec.ts(2/2 passed)