How mahesh497/dinepooja-poss works
Sampada POS is a restaurant point-of-sale application for web, PWA, and Android. Its principal workflow is staff opening a table, building an order in POS, sending items to the kitchen, then taking payment and printing a bill. Separate product areas support delivery tracking, operational administration, and reporting/day close. The excerpts show POS-to-order actions, authentication, authorization, and persistence calls; some capability branches are documented in the README but their implementation wiring was not sampled.
Main entry points: orders.ts Order actions · services.ts Service actions · session.ts Session checks · pos-screen.tsx POS screen
Components 23
Tables and sales
- Tables
src/components/tables-board.tsx - POS screen
src/components/pos-screen.tsx - Order actions
src/lib/actions/orders.ts - Service actions
src/lib/actions/services.ts - Bill and print
src/app/(dashboard)/bill/[orderId]/page.tsx - Tax calculation
src/lib/tax.ts
Kitchen and fulfillment
- KOT board
src/components/kot-board.tsx - Delivery board
src/components/delivery-board.tsx - Delivery actions
src/lib/actions/delivery.ts
Operations and reporting
- Reports
src/components/reports-dashboard.tsx - Admin actions
src/lib/actions/admin.ts - Email utilities
src/lib/email.ts
Application platform
- Dashboard shell
src/components/app-shell.tsx - Login page
src/app/(auth)/login/page.tsx - Auth routes
src/app/api/auth/providers/route.ts - Auth handler
src/lib/next-auth-route.ts - Credentials auth
src/lib/auth.ts - Session checks
src/lib/session.ts - Role permissions
src/lib/permissions.ts - Prisma client
src/lib/prisma.ts - POS database
- Module registry
src/lib/modules.ts
Other components
- Restaurant staff
Connections 27
- Restaurant staff → Tables: selects table
README.md - Restaurant staff → POS screen: creates order
README.md - Tables → Order actions: opens table
- POS screen → Order actions: updates order
src/components/pos-screen.tsx - POS screen → Service actions: applies coupon
src/components/pos-screen.tsx - Order actions → KOT board: sends KOT
README.md - Restaurant staff → KOT board: updates preparation
README.md - Restaurant staff → Bill and print: takes payment
README.md - Order actions → Bill and print: prints bill
README.md - Restaurant staff → Delivery board: manages delivery
README.md - Delivery board → Delivery actions: assigns partner
- Delivery actions → POS database: reads and writes
src/lib/actions/delivery.ts - Restaurant staff → Reports: reviews results
README.md - Reports → Order actions: day close
- Order actions → POS database: reads and writes
src/lib/actions/orders.ts - Service actions → POS database: reads and writes
src/lib/actions/services.ts - Service actions → Tax calculation: calculates bill
src/lib/actions/services.ts - Auth routes → Auth handler: routes request
src/app/api/auth/providers/route.ts - Auth handler → Credentials auth: configures auth
src/lib/next-auth-route.ts - Credentials auth → POS database: checks credentials
src/lib/auth.ts - Session checks → Credentials auth: gets session
src/lib/session.ts - Session checks → Role permissions: checks role
src/lib/session.ts - Order actions → Session checks: requires permission
src/lib/actions/orders.ts - Service actions → Session checks: requires permission
src/lib/actions/services.ts - Prisma client → POS database: connects
- Dashboard shell → Module registry: displays modules
- Dashboard shell → Role permissions: checks access