Initial commit - dashboard leads

This commit is contained in:
Panchito
2026-08-18 11:48:08 -05:00
commit e90dae89b6
5148 changed files with 714437 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# diag_vendedor_sql.py — Verifica el apartado Vendedores.
import services as S
d = S.vendedores_dashboard("2026", "TODOS", "TODOS")
print("Vendedores (filtro):", d["vendedores"])
print(f"\n{'VENDEDOR':24} {'CartTot':>8} {'Copito':>7} {'Otros':>7} {'MatTot':>7} {'Curso':>6} {'Retir':>6}")
print("-"*72)
for f in d["filas"]:
print(f"{f['vendedor']:24} {f['cartera_total']:>8} {f['cartera_copito']:>7} {f['cartera_otros']:>7} "
f"{f['mat_total']:>7} {f['mat_curso']:>6} {f['mat_retiradas']:>6}")
t = d["total"]
print("-"*72)
print(f"{'TOTAL':24} {t['cartera_total']:>8} {t['cartera_copito']:>7} {t['cartera_otros']:>7} "
f"{t['mat_total']:>7} {t['mat_curso']:>6} {t['mat_retiradas']:>6}")