{% extends './v1/layout/default' %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName) }} {% endblock %} {% block content %}
| {{ 'budget'|_ }} | {{ 'budgeted'|_ }} | {{ 'left'|_ }} ({{ 'per_day'|_|lower }}) |
|---|---|---|
|
{% if 0 == budget.budgeted|length %}
{{ budget.name }}
{% endif %}
{% if 1 == budget.budgeted|length %}
{% for budgetLimit in budget.budgeted %}
{{ budget.name }}
{% endfor %}
{% endif %}
{% if budget.budgeted|length > 1 %}
{% for budgetLimit in budget.budgeted %}
{{ budget.name }} ({{ budgetLimit.currency_name }}) {% endfor %} {% endif %} {% if budget.auto_budget %} {% if 1 == budget.auto_budget.auto_budget_type %} {% endif %} {% if 2 == budget.auto_budget.auto_budget_type %} {% endif %} {% endif %} {% if budget.attachments.count() > 0 %} {% endif %} |
{% if 0==budget.budgeted|length %}
{{ defaultCurrency.symbol }}
{% endif %} {{ budgetLimit.currency_symbol }}
|
{% for spentInfo in budget.spent %}
{% set countLimit = 0 %}
{% for budgetLimit in budget.budgeted %}
{% if spentInfo.currency_id == budgetLimit.currency_id and budgetLimit.in_range %}
{% set countLimit = countLimit + 1 %}
{{ formatAmountBySymbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
{% if spentInfo.spent + budgetLimit.amount > 0 %}
({{ formatAmountBySymbol((spentInfo.spent + budgetLimit.amount) / activeDaysLeft, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
{% else %}
({{ formatAmountBySymbol(0, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
{% endif %}
{% endif %} {% endfor %} {% if countLimit == 0 %} {{ formatAmountBySymbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }} {% endif %} {% endfor %} {% for budgetLimit in budget.budgeted %} {% if null == budget.spent[budgetLimit.currency_id] %} {{ formatAmountBySymbol(budgetLimit.amount, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }} {% if budgetLimit.in_range %} ({{ formatAmountBySymbol(budgetLimit.amount / activeDaysLeft, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}) {% endif %} {% endif %} {% endfor %} |
| {{ 'sum'|_ }} |
{% for arr in sums.left %}
{{ formatAmountBySymbol(arr.amount, arr.currency_symbol, arr.currency_decimal_places) }}
({{ formatAmountBySymbol(arr.amount / activeDaysLeft, arr.currency_symbol, arr.currency_decimal_places) }})
{% endfor %} |