How ibksaleh/suivi_caisse_sociam works
This is a browser-based cash and finance operations application. Users enter and manage cash movements, then review operational registers and finance views such as AFRI, companies, couriers, and suppliers; the domain layer supplies operations and calculations, while server commands and SQLite-backed state provide authoritative persistence. The excerpts and source index establish several UI-to-domain and server-side links, but do not show the full client/server request routing or every route’s behavior, so those connections are omitted where unsupported.
Main entry points: operations.ts Operations domain · commands.ts Server commands · _app.index.tsx Record movement · state-store.ts State store
Components 23
Operations workflow
- Record movement
src/routes/_app.index.tsx - Operations register
src/components/registre-page.tsx - Courier activity
src/routes/_app.coursiers.tsx - Supplier invoices
src/routes/_app.fournisseurs.tsx - Department activity
src/routes/_app.departements.tsx - Pending operations
src/routes/_app.attente.tsx - Cancel operation
src/components/operation-annulation-dialog.tsx - Cancel supplier invoice
src/components/facture-fournisseur-annulation-dialog.tsx - Supplier invoice form
src/components/facture-fournisseur-form-dialog.tsx - Smart date input
src/components/smart-date-input.tsx
Finance views
- AFRI account
src/routes/_app.afri.tsx - Company accounts
src/routes/_app.societes.tsx - Dashboard
src/routes/_app.dashboard.tsx - Finance and controls
src/routes
Domain logic
- Operations domain
src/lib/operations.ts - Courier transactions
src/lib/coursier-transactions.ts - Display helpers
src/lib/ui-helpers.ts
Server persistence
- Server commands
src/lib/server/commands.ts - HTTP server
src/server.ts - State store
src/lib/server/state-store.ts - Database schema
src/lib/server/schema.ts - SQLite connection
src/lib/server/db.ts
Other components
- Finance user
Connections 28
- Finance user → Record movement: records movement
src/routes/_app.index.tsx - Record movement → Operations domain: creates and queries
src/routes/_app.index.tsx - Record movement → Smart date input: uses date field
src/routes/_app.index.tsx - Operations register → Operations domain: reads operations
src/components/registre-page.tsx - Operations register → Cancel operation: opens cancellation
src/components/registre-page.tsx - Courier activity → Operations domain: queries operations
src/routes/_app.coursiers.tsx - Courier activity → Courier transactions: uses courier logic
src/routes/_app.coursiers.tsx - Supplier invoices → Operations domain: queries invoice data
src/routes/_app.fournisseurs.tsx - Supplier invoices → Supplier invoice form: opens invoice form
src/routes/_app.fournisseurs.tsx - Department activity → Operations domain: queries operations
src/routes/_app.departements.tsx - Department activity → Cancel supplier invoice: opens cancellation
src/routes/_app.departements.tsx - Pending operations → Operations domain: queries operations
src/routes/_app.attente.tsx - AFRI account → Operations domain: queries AFRI data
src/routes/_app.afri.tsx - Company accounts → Operations domain: loads account data
src/routes/_app.societes.tsx - Company accounts → Cancel supplier invoice: opens cancellation
src/routes/_app.societes.tsx - Dashboard → Operations domain: queries metrics
src/routes/_app.dashboard.tsx - Finance and controls → Operations domain: domain usage
src/routes/_app.afri.tsx - Courier transactions → Operations domain: uses operation logic
src/lib/coursier-transactions.ts - Cancel operation → Operations domain: cancels operation
src/components/operation-annulation-dialog.tsx - Cancel supplier invoice → Operations domain: uses operation data
src/components/facture-fournisseur-annulation-dialog.tsx - Supplier invoice form → Operations domain: uses operation logic
src/components/facture-fournisseur-form-dialog.tsx - HTTP server → Server commands: dispatches commands
src/server.ts - Server commands → Operations domain: applies domain rules
src/lib/server/commands.ts - Server commands → State store: reads and writes
src/lib/server/commands.ts - Server commands → SQLite connection: uses database
src/lib/server/commands.ts - State store → Database schema: uses schema
src/lib/server/state-store.ts - State store → SQLite connection: uses connection
src/lib/server/state-store.ts - Smart date input → Display helpers: formats dates