{% extends "base.html" %} {% block title %}Ventas — {{ locales[local].nombre }}{% endblock %} {% block page_title %}💰 Ventas — {{ locales[local].icono }} {{ locales[local].nombre }}{% endblock %} {% block content %}
{% for key, cfg in locales.items() %} {{ cfg.icono }} {{ cfg.nombre }} {% endfor %}
✕ Limpiar 📋 Registrar Turno ➕ Venta individual
💰 Total Período
${{ '{:,.0f}'.format(total) }}
{{ ventas|length }} registros
💵 Efectivo
${{ '{:,.0f}'.format(total_por_forma.efectivo) }}
💳 Débito
${{ '{:,.0f}'.format(total_por_forma.debito) }}
💳 Crédito
${{ '{:,.0f}'.format(total_por_forma.credito) }}
🏦 Transferencia
${{ '{:,.0f}'.format(total_por_forma.transferencia) }}
🔄 Otros
${{ '{:,.0f}'.format(total_por_forma.otros) }}
Registro de Ventas
{% if ventas %} {% for v in ventas %} {% endfor %}
Fecha Hora Turno Descripción Monto Forma Pago Responsable Total
{{ v.fecha.strftime('%d/%m/%Y') }} {{ v.creado.strftime('%H:%M') if v.creado else '—' }} {{ v.turno }} {{ v.producto }} {% if v.notas and '[CIERRE_TURNO]' in v.notas %} (cierre) {% endif %} ${{ '{:,.0f}'.format(v.total) }} {% if v.forma_pago == 'efectivo' %} 💵 Efectivo {% elif v.forma_pago == 'debito' %} 💳 Débito {% elif v.forma_pago == 'credito' %} 💳 Crédito {% elif v.forma_pago == 'transferencia' %} 🏦 Transfer. {% else %} 🔄 Otros {% endif %} {{ v.vendedor or '—' }} ${{ '{:,.0f}'.format(v.total) }}
TOTAL ${{ '{:,.0f}'.format(total) }}
{% else %}

📭

No hay ventas para los filtros seleccionados

➕ Registrar primera venta
{% endif %}
{% endblock %}