Repository navigation
fix(pos): enforce deferred-payment availability and order types - #1415
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
PR Summary by QodoGate deferred checkout by feature setting and order type
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1.
|
cb3a24b to
b0ab06b
Compare
631ee15 to
7129ecf
Compare
b0ab06b to
b5970ba
Compare
Summary
Addresses release audit finding F-3 for counter workflow and deferred payment validation:
dine_in,takeaway,delivery,drive_thru), returning 400 for unsupported combinations.Changes
main/routes/orders.ts: Validate order type during deferred payment order creation, rejecting unsupported types.CartPanel.tsx&pos/page.tsx: Respect counter configuration and order types for pay-later button availability and checkout workflows.tests/multi-counter-ordering.test.ts&frontend/e2e/multi-counter-ordering.spec.ts: Add unit and E2E coverage for counter flow order types.docs/architecture/order-lifecycle.md.Stack
codex/audit-scheduled-release)Verification
npm run test:multi-counter-ordering: Passed (271/271)npm run test:pos-keyboard-shortcuts: Passed