How svtrackpune/invoice-automation-saas works
Moneymatters is a multi-business invoicing and financial-operations platform. Its principal workflow is configuring a business, managing customers and items, creating and settling documents, then tracking resulting financial activity through accounting, reporting, and bank reconciliation. The graph preserves README-documented capabilities alongside source-visible API, tax, banking, and public-document relationships. Several workspace and integration branches are represented at their exact tree directories because their implementation was not sampled; their internal call paths are therefore not asserted.
Main entry points: import/route.ts Bank statement import · invoices/route.ts Dynamic invoice API · public-tokens.ts Public document access · payments Payment sessions and webhooks
Components 26
Business setup
- Business onboarding
app/onboarding/page.tsx - Business settings
app/next-workspace/business-details - Customer management
app/next-workspace/customers - Inventory and items
app/next-workspace/inventory
Sales and documents
- Invoice and sales workspace
app/next-workspace/invoices - Sales workflows
app/next-workspace/sales - Public documents
app/next-workspace/documents - Public document access
lib/server/documents/public-tokens.ts - Document PDF rendering
lib/server/documents/public-pdf.ts - Receipt PDF rendering
lib/server/receipt-pdf.ts
Financial operations
- Tax profiles
app/next-workspace/tax/TaxProfilesManager.tsx - Dynamic tax determination
lib/server/tax/apply-dynamic.ts - Accounting and reports
app/next-workspace/reports - Bank statement import
app/api/banking/statements/import/route.ts - Statement format parsers
lib/server/banking/parsers - Transaction matching
lib/server/banking/matching.ts - Offline cash-bill POS
lib/client/offline-cash-bills.ts
API and services
- Public API routes
app/api/v1 - API key authentication
lib/server/api-key-auth.ts - Dynamic invoice API
app/api/v1/invoices/route.ts - Supabase client
lib/supabase.ts - Supabase / PostgreSQL
Payments and delivery
- Payment sessions and webhooks
app/api/payments - Payment adapters
lib/server/payments - Notifications
supabase/functions/process-notifications/index.ts
Other components
- Operators / customers
Connections 20
- Operators / customers → Business onboarding: sets up business
README.md - Operators / customers → Invoice and sales workspace: creates documents
README.md - Invoice and sales workspace → Supabase / PostgreSQL: persists financial records
README.md - Business onboarding → Supabase / PostgreSQL: completes setup
app/onboarding/page.tsx - Customer management → Supabase / PostgreSQL: reads and writes customers
app/next-workspace/customers/CustomerManager.tsx - Tax profiles → Supabase / PostgreSQL: manages tax rates
app/next-workspace/tax/TaxProfilesManager.tsx - Dynamic invoice API → API key authentication: authenticates requests
app/api/v1/invoices/route.ts - Dynamic invoice API → Dynamic tax determination: applies tax
app/api/v1/invoices/route.ts - Dynamic invoice API → Supabase / PostgreSQL: creates invoice by RPC
app/api/v1/invoices/route.ts - Bank statement import → Statement format parsers: parses statement
app/api/banking/statements/import/route.ts - Bank statement import → Transaction matching: suggests matches
app/api/banking/statements/import/route.ts - Bank statement import → Supabase / PostgreSQL: loads and imports transactions
app/api/banking/statements/import/route.ts - Public document access → Document PDF rendering: renders documents
lib/server/documents/public-tokens.ts - Public document access → Receipt PDF rendering: renders receipts
lib/server/documents/public-tokens.ts - Payment sessions and webhooks → Payment adapters: uses payment adapters
app/api/payments/payable/session/route.ts - Payment sessions and webhooks → Supabase / PostgreSQL: records payment events
README.md - Offline cash-bill POS → Supabase / PostgreSQL: replays queued bills
README.md - Supabase client → Supabase / PostgreSQL: connects to
lib/supabase.ts - Accounting and reports → Supabase / PostgreSQL: reads financial activity
README.md - Notifications → Supabase / PostgreSQL: routes tenant notifications
README.md