feat: módulo de facturas venta (Ventas/Crear) para contrato 040

- generar_factura_venta en json_generator.py con mapeo completo del JSON
- Queries default tipo 'ventas' (por fecha y por número) filtradas a contrato 040
- Ruta /ventas con preview, send-one y send masivo
- Template ventas.html con tabla, resumen y modal JSON
- Link en navegación lateral

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-11 11:16:42 -05:00
co-authored by Claude Sonnet 4.6
parent 6fb18a7af6
commit 6b84ecfd90
6 changed files with 772 additions and 2 deletions
+2 -1
View File
@@ -67,7 +67,7 @@ async def root():
return RedirectResponse(url="/dashboard")
from app.routes import auth, dashboard, config, queries, terceros, transaccion, logs, automation, test_rda, debug_fb, pacientes, contratos
from app.routes import auth, dashboard, config, queries, terceros, transaccion, logs, automation, test_rda, debug_fb, pacientes, contratos, ventas
app.include_router(auth.router)
app.include_router(dashboard.router)
@@ -81,6 +81,7 @@ app.include_router(test_rda.router)
app.include_router(debug_fb.router)
app.include_router(pacientes.router)
app.include_router(contratos.router)
app.include_router(ventas.router)
if __name__ == "__main__":