How kiowoyo21-eng/cashier-ms works
This is a browser-local Next.js business-management PWA for branch operations, with inventory controls, POS and fund workflows, terminal reconciliation, and standalone spreadsheet/document workspaces. The main operational flow is staff using the dashboard to manage inventory and sales, with separate review steps for stock and disbursements; office files are a parallel reporting workflow. The README and sampled references support the major capabilities, but many internal dashboard handlers were not excerpted, so those relationships are shown only where documented or indexed.
Main entry points: page.tsx Operations dashboard · ReportStudio.tsx Report studio · data.ts Business data and ledger · DisbursementWorkspace.tsx Disbursement workspace
Components 29
Application entry
- Operations dashboard
app/page.tsx - Spreadsheet routes
app/sheets/page.tsx - Spreadsheet editor route
app/sheets/[fileId]/page.tsx - Shared UI
components/Ui.tsx
Inventory control
- Barcode camera
components/BarcodeCamera.tsx - Bulk registration
components/BulkScanRegistration.tsx - Stock scanning
components/StockScanPanel.tsx - Stock verification
components/InventoryReview.tsx - Cost configuration
components/PriceConfiguration.tsx
Sales and funds
- POS line entry
components/POSLineComposer.tsx - Quotation grid
components/POSQuotationGrid.tsx - COGS review UI
components/POSCostReview.tsx - Disbursement workspace
components/DisbursementWorkspace.tsx - Terminal tracker
components/TerminalTracker.tsx
Office workspaces
- Office workspace routing
components/StudioRoute.tsx - Report studio
components/ReportStudio.tsx - Spreadsheet editor
components/SheetWorkbench.tsx - Document editor
components/DocumentWorkbench.tsx
Domain services
- Business data and ledger
lib/data.ts - Disbursement requests
lib/disbursement-requests.ts - Terminal reconciliation
lib/terminal.ts - COGS validation
lib/pos-cogs-review.ts - POS line rules
lib/pos-line-entry.ts - Quotation rules
lib/pos-quotation-grid.ts - Office file model
lib/report-studio.ts - Office import
lib/office-import.ts - Office HTML conversion
lib/office-html.ts - Print and export
lib/print.ts
Other components
- Staff
Connections 36
- Staff → Operations dashboard: uses
README.md - Operations dashboard → Business data and ledger: loads and saves
app/page.tsx - Operations dashboard → Bulk registration: renders
app/page.tsx - Operations dashboard → Stock scanning: renders
app/page.tsx - Operations dashboard → Stock verification: renders
app/page.tsx - Operations dashboard → Cost configuration: renders
app/page.tsx - Operations dashboard → POS line entry: renders
app/page.tsx - Operations dashboard → Quotation grid: renders
app/page.tsx - Operations dashboard → COGS review UI: renders
app/page.tsx - Operations dashboard → Disbursement workspace: renders
app/page.tsx - Operations dashboard → Terminal tracker: renders
app/page.tsx - Bulk registration → Barcode camera: uses
components/BulkScanRegistration.tsx - Stock scanning → Barcode camera: uses
components/StockScanPanel.tsx - Stock verification → Barcode camera: uses
components/InventoryReview.tsx - Disbursement workspace → Disbursement requests: uses
components/DisbursementWorkspace.tsx - Disbursement workspace → Business data and ledger: reads
components/DisbursementWorkspace.tsx - Terminal tracker → Terminal reconciliation: submits reviews
components/TerminalTracker.tsx - Terminal reconciliation → Business data and ledger: updates
lib/terminal.ts - COGS review UI → COGS validation: validates with
components/POSCostReview.tsx - Quotation grid → Quotation rules: uses
lib/pos-quotation-grid.ts - Quotation rules → POS line rules: uses
lib/pos-quotation-grid.ts - Spreadsheet routes → Office workspace routing: routes to
app/sheets/page.tsx - Spreadsheet editor route → Office workspace routing: routes to
app/sheets/[fileId]/page.tsx - Office workspace routing → Report studio: renders
components/StudioRoute.tsx - Report studio → Office file model: reads and writes
components/ReportStudio.tsx - Report studio → Spreadsheet editor: renders
components/ReportStudio.tsx - Report studio → Document editor: renders
components/ReportStudio.tsx - Spreadsheet editor → Office import: imports
components/SheetWorkbench.tsx - Office import → Office HTML conversion: uses
lib/office-import.ts - Office import → Office file model: converts for
lib/office-import.ts - Report studio → Office HTML conversion: uses
components/ReportStudio.tsx - Report studio → Print and export: exports
components/ReportStudio.tsx - Operations dashboard → Shared UI: uses
app/page.tsx - Operations dashboard → Business data and ledger: provides state
app/page.tsx - Business data and ledger → Disbursement requests: defines requests for
lib/data.ts - Business data and ledger → COGS validation: provides POS data
lib/pos-cogs-review.ts