Changes between Version 9 and Version 10 of App
- Timestamp:
- 09/08/25 19:03:05 (11 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
App
v9 v10 1 = SQL Views=1 == SQL Views == 2 2 3 3 The application uses SQL VIEWs to simplify common queries and improve maintainability. … … 15 15 }}} 16 16 17 == v_client_financial_summary == 17 ** v_client_financial_summary ** 18 18 19 19 '''Purpose''': Shows total amounts for each client with risk analysis … … 27 27 }}} 28 28 29 = API Integration = 29 ** API Integration ** 30 30 31 31 The views are used in API endpoints to provide simplified data access: … … 35 35 src/app/api/invoices/totals/route.ts: Uses v_invoice_analytics view for invoice analytics 36 36 37 = Benefits = 37 ** Benefits ** 38 38 39 39 '''Simpler queries''': No need to write complex JOINs every time … … 60 60 - `src/app/api/invoices/route.ts`: For creating new invoices 61 61 62 **Triggers** 62 == Triggers == 63 63 64 64 The system implements a sophisticated trigger system for invoice management: … … 73 73 The trigger is implemented in `sql/01_invoice_status_trigger.sql`. 74 74 75 **Indexes** 75 == Indexes == 76 76 77 77 Several optimized indexes are implemented for better query performance: