How ascriscorp/scl-sauco works
SCL-SAUCO is a PHP business-management application with login-gated pages for users, suppliers, companies, and purchase orders. Requests enter through the page router or module-specific AJAX endpoints; controllers handle domain operations and models persist data through a shared database layer. The interface also exposes purchase-order reporting capabilities, including invoice generation. Source evidence is incomplete: several modules and views were not sampled, and the README is empty, so undocumented connections are omitted.
Main entry points: plantilla.php Page template · mainModel.php Shared data layer · ordenCompraControlador.php Purchase-order operations · index.php Front controller
Components 26
Web interface
- Page template
views/plantilla.php - Navigation
views/inc/NavLateral.php - Domain pages
views/contenidos
Request handling
- Front controller
index.php - View router
controller/viewsControllers.php - Search endpoint
ajax/buscadorAjax.php - Company endpoint
ajax/empresaAjax.php - Purchase-order endpoint
ajax/orndeCompraAjax.php - Supplier endpoint
ajax/proveedorAjax.php - User endpoint
ajax/usuarioAjax.php
Business operations
- Login handling
controller/loginControlador.php - Company operations
controller/empresaControlador.php - Purchase-order operations
controller/ordenCompraControlador.php - Supplier operations
controller/proveedorControlador.php - User operations
controller/usuarioControlador.php
Persistence and reports
- Login model
models/loginModelo.php - Company model
models/empresaModelo.php - Purchase-order model
models/ordenCompraModelo.php - Supplier model
models/proveedorModelo.php - User model
models/usuarioModelo.php - Shared data layer
models/mainModel.php - Database configuration
config/SERVER.php - Invoice generator
reportes/invoice.php - PDF engine
reportes/fpdf.php
Other components
- Staff user
- MySQL database
Connections 23
- Staff user → Front controller: opens application
index.php - Front controller → View router: loads router
index.php - View router → Page template: loads template
controller/viewsControllers.php - Page template → Login handling: checks session
views/plantilla.php - Page template → Navigation: includes navigation
views/plantilla.php - Page template → Domain pages: includes selected page
views/plantilla.php - Page template → Login model: uses login controller
- Company endpoint → Company operations: dispatches to
ajax/empresaAjax.php - Purchase-order endpoint → Purchase-order operations: dispatches to
ajax/orndeCompraAjax.php - Supplier endpoint → Supplier operations: dispatches to
ajax/proveedorAjax.php - User endpoint → User operations: dispatches to
ajax/usuarioAjax.php - Company operations → Company model: uses model
controller/empresaControlador.php - Purchase-order operations → Purchase-order model: uses model
controller/ordenCompraControlador.php - Supplier operations → Supplier model: uses model
controller/proveedorControlador.php - User operations → User model: uses model
controller/usuarioControlador.php - Company model → Shared data layer: extends shared layer
models/empresaModelo.php - Supplier model → Shared data layer: extends shared layer
models/proveedorModelo.php - User model → Shared data layer: extends shared layer
models/usuarioModelo.php - Shared data layer → Database configuration: loads configuration
models/mainModel.php - Shared data layer → MySQL database: opens PDO connection
models/mainModel.php - Invoice generator → PDF engine: uses PDF engine
reportes/invoice.php - Purchase-order operations → Invoice generator: may generate invoice
- Search endpoint → Staff user: stores search filters
ajax/buscadorAjax.php