How jribanezgarcia/factura_prueba works
CaboFactu is a JavaFX desktop invoicing application for managing multiple companies with separate SQLite databases. The main workflow takes a user from the desktop screens through the central controller and model to business operations and persistent company data; invoice editing includes calculation and numbering, with history and PDF export as related capabilities. The README documents these MVC boundaries and the product features. Some feature-specific implementation paths are represented by their listed classes, but unsampled calls are not inferred.
Main entry points: Controlador.java Application controller · Modelo.java Application model · EditorController.java Invoice editor · HistoricoController.java Invoice history
Components 21
Desktop interface
- Application screens
src/main/java/cabofactu/vista/Vista.java - Company startup
src/main/java/cabofactu/vista/controlador/ArranqueController.java - Application controller
src/main/java/cabofactu/controlador/Controlador.java - Application model
src/main/java/cabofactu/modelo/Modelo.java
Invoice workflow
- Invoice editor
src/main/java/cabofactu/vista/controlador/EditorController.java - Invoice history
src/main/java/cabofactu/vista/controlador/HistoricoController.java - Monthly invoicing
src/main/java/cabofactu/vista/controlador/GenerarFacturasMensualesController.java - Invoice records
src/main/java/cabofactu/modelo/dominio/Factura.java - Series numbering
src/main/java/cabofactu/modelo/dominio/Serie.java - Invoice operations
src/main/java/cabofactu/modelo/negocio/Facturas.java - Invoice calculations
src/main/java/cabofactu/modelo/negocio/Calculos.java - Monthly generation
src/main/java/cabofactu/modelo/negocio/FacturacionMensual.java
Business records
- Customer records
src/main/java/cabofactu/modelo/negocio/Clientes.java - Customer data
src/main/java/cabofactu/modelo/dominio/Cliente.java - Company management
src/main/java/cabofactu/modelo/negocio/Empresas.java - Tax catalogs
src/main/java/cabofactu/modelo/dominio/TipoIva.java
Company persistence
- SQLite connection
src/main/java/cabofactu/modelo/negocio/sqlite/Conexion.java
Exports and backup
- PDF generation
src/main/java/cabofactu/pdf/GeneradorPdf.java - Backup management
src/main/java/cabofactu/modelo/negocio/CopiaSeguridad.java - Backup screen
src/main/java/cabofactu/vista/controlador/CopiaSeguridadController.java
Other components
- User
Connections 17
- User → Application screens: uses
README.md - Application screens → Application controller: routes via
README.md - Application controller → Application model: delegates to
README.md - Application model → Invoice operations: dispatches to
README.md - Application model → Customer records: dispatches to
README.md - Invoice operations → SQLite connection: runs SQL through
README.md - Customer records → SQLite connection: runs SQL through
src/main/java/cabofactu/modelo/negocio/Clientes.java - Invoice editor → Application controller: uses
README.md - Invoice history → Application controller: uses
README.md - Company startup → Application controller: uses
README.md - Monthly invoicing → Application controller: uses
README.md - Invoice editor → PDF generation: exports invoices
- Invoice history → PDF generation: exports selection
- Backup screen → Application controller: uses
README.md - Application model → Monthly generation: dispatches to
README.md - Application model → Company management: dispatches to
README.md - Invoice editor → Invoice calculations: calculates invoice
src/main/java/cabofactu/vista/controlador/EditorController.java