# diag_importe.py  —  Verifica matriz_asignados (pivot asesor x dia).
import services as S

d = S.matriz_asignados("2026", "7", "TODOS")
print("MES 7 2026  TOTAL asignados:", d["total"])
print("dias (columnas):", d["dias"][:5], "...", d["dias"][-3:])
print("\nPor asesor (total):")
for f in d["filas"]:
    dias_con = {k:v for k,v in f["por_dia"].items() if v}
    print(f"   {f['asesor']:22} total={f['total']:4}   dias con datos: {len(dias_con)}")
print("\ntotal_por_dia (primeros 10):", {k:v for k,v in list(d['total_por_dia'].items())[:10]})
print("OK.")
