How e2m0/prestamos works
ALTÉZZA is a loan-management web application for customer and guarantor records, loan origination, collections with printable/email receipts, and administrator-approved renewals. Users sign in, work through role-aware React screens, and submit requests to a PHP REST API; PHP owns financial calculations and business validation, persists operations through prepared PDO queries and transactions, and can send receipt email through optional SMTP. The README documents capabilities beyond the sampled excerpts; links within unsampled subsystems are therefore omitted unless documented. Evidence is limited to the README and the supplied source index/excerpts.
Main entry points: App.jsx Application routes · api.js HTTP client · ReciboService.php Receipt handling · Clientes.jsx Client records
Components 29
Web interface
- Application routes
frontend/src/App.jsx - Client records
frontend/src/pages/Clientes.jsx - Loan screens
frontend/src/pages/Prestamos.jsx - Receipt screens
frontend/src/pages/Recibos.jsx - Renewal screens
frontend/src/pages/Renovaciones.jsx - Loan type screens
frontend/src/pages/TiposPrestamo.jsx - Credit rules
frontend/src/utils/creditoCliente.js - Document checks
frontend/src/utils/documento.js - HTTP client
frontend/src/services/api.js
API and access
- API entry point
backend/public/index.php - Route dispatch
backend/src/helpers/Router.php - Session and roles
backend/src/helpers/Sesion.php - JSON responses
backend/src/helpers/Respuesta.php - Runtime configuration
backend/src/config/Configuracion.php
Loan operations
- Customer management
backend/src/services/ClienteService.php - Customer validation
backend/src/services/ClienteValidador.php - Loan origination
backend/src/services/PrestamoService.php - Amortization
backend/src/services/AmortizacionService.php - Payment processing
backend/src/services/PagoService.php - Late fees
backend/src/services/MoraService.php - Receipt handling
backend/src/services/ReciboService.php - Loan renewals
backend/src/services/RenovacionService.php
Persistence
- PDO connection
backend/src/config/Database.php - SQL models
backend/src/models
External services
- SMTP mailer
backend/lib/PHPMailer/src/PHPMailer.php - SMTP transport
backend/lib/PHPMailer/src/SMTP.php
Other components
- Staff user
- SMTP provider
- Relational database
Connections 32
- Staff user → Application routes: uses
frontend/src/App.jsx - Application routes → Client records: routes to
frontend/src/App.jsx - Application routes → Loan screens: routes to
frontend/src/App.jsx - Application routes → Receipt screens: routes to
frontend/src/App.jsx - Application routes → Renewal screens: admin route
frontend/src/App.jsx - Application routes → Loan type screens: admin route
frontend/src/App.jsx - Client records → Credit rules: checks credit
frontend/src/pages/Clientes.jsx - Client records → Document checks: validates identity
frontend/src/pages/Clientes.jsx - Client records → HTTP client: calls client service
frontend/src/pages/Clientes.jsx - Loan screens → HTTP client: submits requests
- Receipt screens → HTTP client: submits requests
- Renewal screens → HTTP client: submits requests
- Loan type screens → HTTP client: submits requests
- HTTP client → API entry point: calls REST API
README.md - API entry point → Runtime configuration: loads settings
backend/public/index.php - API entry point → Route dispatch: dispatches
backend/public/index.php - Route dispatch → JSON responses: uses responses
backend/src/helpers/Router.php - Customer management → Customer validation: validates
backend/src/services/ClienteService.php - Customer management → SQL models: uses SQL models
backend/src/services/ClienteService.php - Loan origination → Amortization: calculates schedule
- Payment processing → Late fees: calculates mora
backend/src/services/PagoService.php - Payment processing → Amortization: recalculates schedule
backend/src/services/PagoService.php - Receipt handling → Payment processing: applies payment
backend/src/services/ReciboService.php - Receipt handling → Late fees: uses late fees
backend/src/services/ReciboService.php - Receipt handling → SQL models: reads and writes
backend/src/services/ReciboService.php - Loan renewals → PDO connection: uses transaction
- PDO connection → Runtime configuration: reads connection settings
backend/src/config/Database.php - SQL models → PDO connection: queries
backend/src/models/ClienteModel.php - PDO connection → Relational database: connects
README.md - Receipt handling → SMTP mailer: sends receipt email
backend/src/services/ReciboService.php - SMTP mailer → SMTP transport: uses transport
backend/lib/PHPMailer/src/PHPMailer.php - SMTP transport → SMTP provider: sends mail
README.md