{% extends "base.html" %} {% block contenido %} {% set status_value = plantilla.status %} {% set status_badge = 'bg-secondary' %} {% if status_value == 'approved' %}{% set status_badge = 'bg-primary' %} {% elif status_value == 'cancelled' %}{% set status_badge = 'bg-danger' %} {% elif status_value == 'completed' %}{% set status_badge = 'bg-success' %} {% endif %}
{{ plantilla.code }} {{ _(status_value) }}
{% if plantilla.status == "draft" %}
{% endif %} {% if plantilla.status in ["draft", "approved"] %} {% endif %} {{ _('Listado') }}

{{ plantilla.name }}

{{ plantilla.company }}

{{ plantilla.start_date }}

{{ _(plantilla.frequency) }}

{{ plantilla.ledger_id or _('Todos') }}

{{ plantilla.end_date }}

{{ plantilla.currency or _('Local') }}

{{ plantilla.last_applied_date or '-' }}

{{ plantilla.description or '-' }}

{{ _('Líneas de la plantilla') }}
{% for linea in lineas %} {% endfor %}
{{ _('Cuenta') }} {{ _('Débito') }} {{ _('Crédito') }} {{ _('Descripción') }} {{ _('Detalle') }}
{{ linea.account_code }} {{ "{:,.2f}".format(linea.debit) }} {{ "{:,.2f}".format(linea.credit) }} {{ linea.description or '-' }}
{{ _('Detalle de línea seleccionada') }}
{{ _('Centro de costos') }}

-

{{ _('Unidad de negocio') }}

-

{{ _('Proyecto') }}

-

{{ _('Tercero') }}

-

{{ _('Historial de Aplicaciones') }}
{% for app in aplicaciones %} {% else %}{% endfor %}
{{ _('Periodo') }}{{ _('Fecha') }}{{ _('Comprobante') }}{{ _('Estado') }}
{{ app.accounting_period }}{{ app.application_date }} {% if app.journal_id %}{{ app.journal_id }}{% else %}-{% endif %} {{ _(app.status) }}
{{ _('Sin aplicaciones registradas.') }}
{% endblock %}