How anton10-ar/proyecto-optica works
Ópticas Casimiro is a Django system for optical-shop sales, inventory, cash operations, staff attendance, and administration. A typical staff workflow enters through the web application, then uses the relevant module to record or manage a business operation; sales can draw on inventory and cash services. The README documents the product capabilities, while sampled sources show selected service and view calls. Several module routes and parts of their implementation were not sampled, so the graph omits unverified links rather than inferring them.
Main entry points: config/views.py Role-aware dashboard · inventario/views.py Inventory operations · ventas/views.py Sales and orders · asistencia/views.py Attendance operations
Components 27
Platform and administration
- Django web entry
config/urls.py - Role-aware dashboard
config/views.py - Users and branches
core/models.py - Account administration
core/views.py - Account forms
core/forms.py - Role permissions
core/roles.py - Activity audit
core/auditoria.py
Inventory
- Inventory operations
inventario/views.py - Inventory forms
inventario/forms.py - Stock movements
inventario/servicios.py - Catalog and stock
inventario/models.py - Inventory reports
inventario/reportes.py
Sales and cash
- Sales and orders
ventas/views.py - Sales forms
ventas/forms.py - Sale processing
ventas/servicios.py - Customers and sales
ventas/models.py - Sales reports
ventas/reportes.py - Cash operations
caja/views.py - Cash session service
caja/servicios.py - Cash sessions
caja/models.py
Attendance
- Attendance operations
asistencia/views.py - Attendance forms
asistencia/forms.py - Attendance service
asistencia/servicios.py - Attendance calculations
asistencia/calculo.py - Schedules and records
asistencia/models.py
Other components
- Staff user
- PostgreSQL
Connections 33
- Staff user → Django web entry: uses
README.md - Django web entry → Role-aware dashboard: routes
config/urls.py - Django web entry → Account administration: routes
config/urls.py - Role-aware dashboard → Attendance service: queries attendance
config/views.py - Role-aware dashboard → Cash session service: checks cash
config/views.py - Role-aware dashboard → Inventory reports: queries inventory
config/views.py - Role-aware dashboard → Customers and sales: queries sales
config/views.py - Role-aware dashboard → Users and branches: queries accounts
config/views.py - Role-aware dashboard → Activity audit: queries audit
config/views.py - Account administration → Account forms: uses
core/views.py - Account administration → Users and branches: queries
core/views.py - Account administration → Activity audit: records actions
core/views.py - Users and branches → Role permissions: assigns roles
- Inventory operations → Inventory forms: uses
inventario/views.py - Inventory operations → Stock movements: calls
inventario/views.py - Inventory operations → Inventory reports: calls
inventario/views.py - Inventory operations → Catalog and stock: queries
inventario/views.py - Stock movements → Catalog and stock: updates stock
inventario/servicios.py - Sales and orders → Sales forms: uses
ventas/views.py - Sales and orders → Sale processing: calls
ventas/views.py - Sales and orders → Sales reports: calls
ventas/views.py - Sales and orders → Customers and sales: queries
ventas/views.py - Sale processing → Customers and sales: records sales
ventas/servicios.py - Sale processing → Stock movements: records stock
ventas/servicios.py - Sale processing → Cash session service: records payment
ventas/servicios.py - Cash operations → Cash session service: calls
caja/views.py - Cash session service → Cash sessions: updates sessions
caja/servicios.py - Attendance operations → Attendance forms: uses
asistencia/views.py - Attendance operations → Attendance service: calls
asistencia/views.py - Attendance operations → Attendance calculations: calculates
asistencia/views.py - Attendance operations → Schedules and records: queries
asistencia/views.py - Attendance service → Schedules and records: queries
asistencia/servicios.py - Attendance calculations → Schedules and records: calculates from
asistencia/calculo.py