{% extends 'base.html' %} {% block content %}
| Plan | Mensual | Por turno | Profesionales incluidos | Extra profesional | Turnos incluidos | Activo | Acciones |
|---|---|---|---|---|---|---|---|
| {{ p.name }} {{ p.description or '' }} |
$ {{ '%.2f'|format(p.monthly_price or 0) }} | $ {{ '%.2f'|format(p.price_per_appointment or 0) }} | {{ p.included_professionals }} | $ {{ '%.2f'|format(p.extra_professional_price or 0) }} | {{ p.included_appointments }} | {% if p.active %}Sí{% else %}No{% endif %} | |
| Sin planes cargados. | |||||||
| Institución | Plan | Inicio | Día cobro | Estado | Generar | Acciones |
|---|---|---|---|---|---|---|
| {{ s.institution.name }} | {{ s.plan.name }} | {{ s.start_date.strftime('%d/%m/%Y') if s.start_date else '—' }} | {{ s.billing_day }} | {{ s.status }} | ||
| Sin suscripciones. | ||||||
{{ history_institution.name }}
CUIT: {{ history_institution.cuit or '—' }}
| Período | Total | Pagado | Deuda | Estado | |
|---|---|---|---|---|---|
| {{ i.period }} | $ {{ '%.2f'|format(i.total_amount or 0) }} | $ {{ '%.2f'|format(i.paid_amount or 0) }} | $ {{ '%.2f'|format(i.debt_amount) }} | {{ i.status }} | |
| Seleccioná una institución para ver su historial. | |||||
| Fecha | Periodo | Método | Importe | Referencia |
|---|---|---|---|---|
| {{ p.payment_date.strftime('%d/%m/%Y') }} | {{ p.invoice.period }} | {{ p.method }} | $ {{ '%.2f'|format(p.amount or 0) }} | {{ p.reference or p.mercadopago_payment_id or '—' }} |
| Sin pagos para mostrar. | ||||
Configurá esta URL en Mercado Pago:
Estado: {% if mp_config.enabled %}configurado{% else %}sin token{% endif %}
La aprobación final se registra por webhook. El retorno del navegador solo informa al usuario.
| Período | Institución | Turnos | Profesionales | Total | Pagado | Deuda | Vence | Estado | Acciones |
|---|---|---|---|---|---|---|---|---|---|
| {{ i.period }} | {{ i.institution.name }} {{ i.institution.cuit or 'Sin CUIT' }} | {{ i.appointment_count }} $ {{ '%.2f'|format(i.appointment_amount or 0) }} | {{ i.professional_count }} $ {{ '%.2f'|format(i.extra_professional_amount or 0) }} | $ {{ '%.2f'|format(i.total_amount or 0) }} | $ {{ '%.2f'|format(i.paid_amount or 0) }} | $ {{ '%.2f'|format(i.debt_amount) }} | {{ i.due_date.strftime('%d/%m/%Y') if i.due_date else '—' }} | {{ i.status }} | PDF{% if i.status != 'anulada' %}{% if i.mercadopago_init_point or i.mercadopago_sandbox_init_point %}Abrir link{% endif %}{% if (i.paid_amount or 0)==0 %}{% endif %}{% endif %} {% if i.mercadopago_status %}MP: {{ i.mercadopago_status }} {{ i.mercadopago_status_detail or '' }} {% endif %} |
| Sin liquidaciones generadas. | |||||||||