diff --git a/sales-bot/app.py b/sales-bot/app.py index e2806a5..95072f9 100644 --- a/sales-bot/app.py +++ b/sales-bot/app.py @@ -1008,10 +1008,10 @@ def comando_reporte(): } if tipo == 'ejecutivo': - pdf_content = generar_reporte_ejecutivo(ventas, ranking, stats) + pdf_content = generar_reporte_ejecutivo(ventas, stats) filename = f"reporte_ejecutivo_{datetime.now(TZ_MEXICO).strftime('%Y%m%d')}.pdf" else: - pdf_content = generar_reporte_diario(ventas, ranking, stats) + pdf_content = generar_reporte_diario(ventas, stats) filename = f"reporte_{tipo}_{datetime.now(TZ_MEXICO).strftime('%Y%m%d')}.pdf" # Subir PDF a Mattermost @@ -1074,9 +1074,9 @@ def api_reports_generate(): # Generar PDF if tipo == 'executive': - pdf_content = generar_reporte_ejecutivo(ventas, ranking, stats) + pdf_content = generar_reporte_ejecutivo(ventas, stats) else: - pdf_content = generar_reporte_diario(ventas, ranking, stats) + pdf_content = generar_reporte_diario(ventas, stats, vendedor) # Guardar temporalmente y devolver ID import hashlib