How wilgenjarethvasqueztorrez/gestion-de-ventas works
Gestion-de-ventas is a PHP sales and inventory application. Users navigate from the dashboard to product and sales views, where they can create or edit records; the views and forms connect to CRUD handlers that operate on the MySQL database. The dashboard summarizes inventory and sales and renders a product-sales chart. The tree and excerpts support these main workflows, but several core forms and handlers were not sampled, so their internal behavior and some links are not asserted.
Main entry points: producto.php Product list · venta.php Sales list · Conexion.php MySQL connection · sidebar.php Navigation sidebar
Components 18
Application views
- Dashboard
index.php - Product list
producto.php - Sales list
venta.php
Entry forms
- Add product form
Formularios/Producto/AgregarProducto.php - Edit product form
Formularios/Producto/EditarProducto.php - Add sale form
Formularios/Venta/AgregarVenta.php - Edit sale form
Formularios/Venta/EditarVenta.php
CRUD operations
- Product handlers
CRUD/Producto - Sale handlers
CRUD/Venta
Shared runtime
- MySQL connection
Config/Conexion.php - Navigation sidebar
src/includes/Componentes/sidebar.php - Sales chart
src/includes/Dependencias/Chart.php - Table tools
src/includes/Dependencias/datatables.php - Confirmation alerts
src/includes/Dependencias/sweetalert.php - Date picker
src/includes/Dependencias/Flatpickr.php - Product selector
src/includes/Dependencias/Select2.php
Other components
- User
- Sales database
Connections 35
- User → Dashboard: opens
- Navigation sidebar → Dashboard: links to
src/includes/Componentes/sidebar.php - Navigation sidebar → Product list: links to
src/includes/Componentes/sidebar.php - Navigation sidebar → Sales list: links to
src/includes/Componentes/sidebar.php - Dashboard → MySQL connection: requires
index.php - Dashboard → Navigation sidebar: includes
index.php - Dashboard → Sales chart: includes
index.php - Product list → MySQL connection: requires
producto.php - Product list → Navigation sidebar: includes
producto.php - Product list → Add product form: links to
producto.php - Product list → Edit product form: links to
producto.php - Product list → Product handlers: links to
producto.php - Product list → Table tools: includes
producto.php - Product list → Confirmation alerts: includes
producto.php - Edit product form → MySQL connection: includes
Formularios/Producto/EditarProducto.php - Edit product form → Product handlers: submits to
Formularios/Producto/EditarProducto.php - Sales list → MySQL connection: requires
venta.php - Sales list → Navigation sidebar: includes
venta.php - Sales list → Add sale form: links to
venta.php - Sales list → Edit sale form: links to
venta.php - Sales list → Sale handlers: links to
venta.php - Sales list → Table tools: includes
venta.php - Sales list → Confirmation alerts: includes
venta.php - Add sale form → MySQL connection: uses
Formularios/Venta/AgregarVenta.php - Add sale form → Date picker: loads
Formularios/Venta/AgregarVenta.php - Add sale form → Product selector: loads
Formularios/Venta/AgregarVenta.php - Edit sale form → MySQL connection: includes
Formularios/Venta/EditarVenta.php - Edit sale form → Sale handlers: submits to
Formularios/Venta/EditarVenta.php - Edit sale form → Date picker: loads
Formularios/Venta/EditarVenta.php - Edit sale form → Product selector: loads
Formularios/Venta/EditarVenta.php - Product handlers → MySQL connection: requires
CRUD/Producto/editarProducto.php - Sale handlers → MySQL connection: requires
CRUD/Venta/editarVenta.php - MySQL connection → Sales database: connects
Config/Conexion.php - Sales chart → Sales database: queries
src/includes/Dependencias/Chart.php - Sale handlers → Sales database: updates sales and stock
CRUD/Venta/editarVenta.php