{% extends "base.html" %} {% block contenido %}

{{ budget.name }}

{{ budget.budget_code }} | {{ budget.company }} | {{ budget.fiscal_year_id }}
{% if budget.status == 'draft' %} {% if permisos.editar %} {{ _("Editar Encabezado") }} {% endif %} {% if permisos.importar %} {{ _("Importar Líneas") }} {% endif %} {% if permisos.autorizar %}
{% endif %} {% elif budget.status == 'approved' %} {% if permisos.cerrar %}
{% endif %} {% if permisos.reportes %} {{ _("Real vs Presupuesto") }} {% endif %} {% endif %}
{{ _("Detalles") }}

{{ _("Estado") }}:
{{ _("Borrador") if budget.status == "draft" else _("Aprobado") if budget.status == "approved" else _("Cerrado") }}

{{ _("Libro") }}:
{{ budget.ledger_id }}

{{ _("Moneda") }}:
{{ budget.currency_id }}

{% if budget.description %}

{{ _("Descripción") }}:
{{ budget.description }}

{% endif %}
{{ _("Totales por Período") }}

{{ _("Esta vista detalla el monto asignado a cada período del presupuesto para facilitar el seguimiento de su ejecución.") }}


{% for p in periods %} {% endfor %}
{{ _("Totales por Período") }}
{{ _("Período") }} {{ _("Monto") }}
{{ p.name }} {{ totals.get(p.id, 0)|format_currency }}
{{ _("Líneas Presupuestarias") }}
{% if budget.status == 'draft' and permisos.crear %} {{ _("Agregar Línea") }} {% endif %}
{% if budget.status == 'draft' %} {% endif %} {% for line, acc, cc, per, unit, project in lines %} {% if budget.status == 'draft' %} {% endif %} {% else %} {% endfor %}
{{ _("Líneas Presupuestarias") }}
{{ _("Cuenta") }} {{ _("Centro de Costo") }} {{ _("Dimensiones") }} {{ _("Período") }} {{ _("Monto") }}{{ _("Acciones") }}
{{ acc.code }} - {{ acc.name }} {{ cc.code }} - {{ cc.name }} {% if unit %} {{ unit.name }}{% endif %} {% if project %} {{ project.name }}{% endif %} {{ per.name }} {{ line.amount|format_currency }}
{% if permisos.editar %} {% endif %} {% if permisos.eliminar %}
{% endif %}
{{ _("No hay líneas registradas.") }}
{% endblock %}