F-201: GET /pos/reports/cash-close/:id with financial summary, sales by state, payments breakdown, items sold. Extended /pos/sessions/:id. F-202: Cash close email sent on session close to smtpReportEmail (best-effort). smtpReportEmail field added to admin SMTP settings. F-203: Admin POS terminal config: selfpayMode, closeSessionRequiresPin, closeSessionPin (4-6 digits) with dedicated settings section.
410 B
410 B
POS-FIX-3 — POS terminal: cierre de caja button added
Fix
Added closeSession() to posApi. Added Cerrar caja button near the session badge with confirmation dialog asking for actual cash count.
Files changed
- apps/pos/src/lib/api-client.ts (closeSession API)
- apps/pos/src/app/(terminal)/page.tsx (close button + confirmation modal)
Verification
- npm test: 271 passed
- tsc POS app: 0 errors