{% set acceso = permisos(modulo=id_modulo("accounting"), usuario=usuario.id) %} {% extends "base.html" %} {% block contenido %} {% set status_value = (registro.status or 'draft') %} {% set status_badge = 'bg-secondary' %} {% if status_value == 'submitted' %} {% set status_badge = 'bg-success' %} {% elif status_value == 'rejected' %} {% set status_badge = 'bg-danger' %} {% elif status_value == 'cancelled' %} {% set status_badge = 'bg-dark' %} {% endif %}
{{ registro.document_no or registro.serie or _('Comprobante contable') }} {{ _(status_value) }}
{% if registro.status == "draft" %} {{ _('Editar borrador') }}
{% endif %} {% if registro.status in ["draft", "rejected", "submitted"] %}
{% endif %} {% if registro.status == "submitted" %}
{% endif %} {{ _('Listado') }} {{ _('Nuevo') }}

{{ registro.entity or '' }}

{{ registro.date or '' }}

{{ ', '.join(selected_books) if selected_books else '-' }}

{{ creator_nickname or '' }}

{{ _(status_value) }}

{{ registro.reference or '' }}

{{ registro.memo or '' }}

{{ currency_label or '-' }}

{{ _('Líneas del comprobante') }}
{{ _('Seleccione una línea para ver detalle contable') }}
{% for linea in lineas %} {% endfor %}
{{ _('Líneas del comprobante contable') }}
{{ _('No.') }} {{ _('Cuenta') }} {{ _('Centro de costos') }} {{ _('Tercero') }} {{ _('Debe') }} {{ _('Haber') }} {{ _('Acciones') }}
{{ linea.order }} {{ linea.account_label or linea.account }} {{ linea.cost_center_label or linea.cost_center or '-' }} {{ linea.third_code or '-' }} {{ '%.2f'|format(linea.value if linea.value and linea.value > 0 else 0) }} {{ '%.2f'|format(-linea.value if linea.value and linea.value < 0 else 0) }}
{{ _('Detalle de línea seleccionada') }}
#-
{{ _('Cuenta') }}

-

{{ _('Centro de costos') }}

-

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

-

{{ _('Proyecto') }}

-

{{ _('Tipo tercero') }}

-

{{ _('Tercero') }}

-

{{ _('Referencia tipo') }}

-

{{ _('Referencia nombre') }}

-

{{ _('Referencia 1 / 2') }}

- / -

{{ _('Debe') }}

0.00

{{ _('Haber') }}

0.00

{{ _('Es anticipo') }}

{{ _('No') }}

{{ _('Observaciones') }}

-

{% endblock %}