{% extends "macros/base.html" %} {% from "macros/modals.html" import report_filters %} {% from "macros/ui.html" import back_link %} {% block title %}Reporte: Finanzas - {{ modulo_name }}{% endblock %} {% block content %}
{{ back_link(url_for('admin.admin_reportes_index'), 'Volver al Menú') }}

Resumen Financiero y Medios de Pago

{{ modulo_name }}
Período: {{ mes_nombre }}
Venta Total Mensual

${{ "{:,.0f}".format(totales_mes.venta_total).replace(',', '.') }}

Comisiones Generadas

${{ "{:,.0f}".format(totales_mes.comision).replace(',', '.') }}

Total Gastos

-${{ "{:,.0f}".format(totales_mes.gastos).replace(',', '.') }}

Días Trabajados

{{ dias_activos }} / 31

{{ report_filters( url_for('admin.report_modulo_periodo', modulo_id=modulo_id), workers_list, worker_actual, fecha_inicio, fecha_fin ) }}
Desglose Diario
{% for dia in dias_en_periodo %} {% set d = data_por_dia[dia] %} {% endfor %}
Día VENTA TOTAL COMISIÓN GASTOS MEDIOS DE PAGO
Crédito Débito Mercado Pago Efectivo/Dep.
{{ dia }} {{ ("$" ~ "{:,.0f}".format(d.venta_total).replace(',', '.')) if d.venta_total > 0 else "-" }} {{ ("$" ~ "{:,.0f}".format(d.comision).replace(',', '.')) if d.comision > 0 else "-" }} {{ ("-$" ~ "{:,.0f}".format(d.gastos).replace(',', '.')) if d.gastos > 0 else "-" }} {{ ("$" ~ "{:,.0f}".format(d.credito).replace(',', '.')) if d.credito > 0 else "-" }} {{ ("$" ~ "{:,.0f}".format(d.debito).replace(',', '.')) if d.debito > 0 else "-" }} {{ ("$" ~ "{:,.0f}".format(d.mp).replace(',', '.')) if d.mp > 0 else "-" }} {{ ("$" ~ "{:,.0f}".format(d.efectivo).replace(',', '.')) if d.efectivo > 0 else "-" }}
TOTAL ${{ "{:,.0f}".format(totales_mes.venta_total).replace(',', '.') }} ${{ "{:,.0f}".format(totales_mes.comision).replace(',', '.') }} -${{ "{:,.0f}".format(totales_mes.gastos).replace(',', '.') }} ${{ "{:,.0f}".format(totales_mes.credito).replace(',', '.') }} ${{ "{:,.0f}".format(totales_mes.debito).replace(',', '.') }} ${{ "{:,.0f}".format(totales_mes.mp).replace(',', '.') }} ${{ "{:,.0f}".format(totales_mes.efectivo).replace(',', '.') }}
{% endblock %}