15 lines
712 B
Python
15 lines
712 B
Python
# 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}")
|