+
+
-
- {% endif %}
- {% if budget.budgeted|length > 0 %}
- {% for budgetLimit in budget.budgeted %}
-
- {% if not budgetLimit.in_range %}
-
- {{ trans('firefly.budget_limit_not_in_range', {start: budgetLimit.start_date, end: budgetLimit.end_date}) }}
-
- {% endif %}
-
- {% endfor %}
- {% endif %}
- {% if budget.budgeted|length < currencies.count %}
-
-
-
- {% endif %}
- |
-
- {% for spentInfo in budget.spent %}
- {{ formatAmountBySymbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
- ({{ formatAmountBySymbol(spentInfo.spent / activeDaysPassed, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
-
- {% endfor %}
- {% for budgetLimit in budget.budgeted %}
- {% if null == budget.spent[budgetLimit.currency_id] %}
- {{ formatAmountBySymbol(0, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
+ |
+
+ {{ budget.name }}
+ {% if budget.auto_budget %}
+ {% if 1 == budget.auto_budget.auto_budget_type %}
+
{% endif %}
- {% endfor %}
- |
-
- {% for spentInfo in budget.spent %}
- {% set countLimit = 0 %}
- {% for budgetLimit in budget.budgeted %}
- {% if spentInfo.currency_id == budgetLimit.currency_id %}
- {% 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) }})
+ {% if 2 == budget.auto_budget.auto_budget_type %}
+
+ {% endif %}
+ {% endif %}
+ {% if budget.attachments.count > 0 %}
+
+ {% endif %}
+ |
+
+ {% if 0==budget.budgeted|length %}
+
+
+ {% endif %}
+ {% if budget.budgeted|length > 0 %}
+ {% for budgetLimit in budget.budgeted %}
+
+ {% if not budgetLimit.in_range %}
+
+ {{ trans('firefly.budget_limit_not_in_range', {start: budgetLimit.start_date, end: budgetLimit.end_date}) }}
+
{% endif %}
+
+ {% endfor %}
+ {% endif %}
+ {% if budget.budgeted|length < currencies.count %}
+
+
+
+ {% endif %}
+ |
+
+ {% for spentInfo in budget.spent %}
+ {{ formatAmountBySymbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
+ ({{ formatAmountBySymbol(spentInfo.spent / activeDaysPassed, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
+
+ {% endfor %}
+ {% for budgetLimit in budget.budgeted %}
+ {% if null == budget.spent[budgetLimit.currency_id] %}
+ {{ formatAmountBySymbol(0, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
+ {% endif %}
+ {% endfor %}
+ |
+
+ {% for spentInfo in budget.spent %}
+ {% set countLimit = 0 %}
+ {% for budgetLimit in budget.budgeted %}
+ {% if spentInfo.currency_id == budgetLimit.currency_id %}
+ {% 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 %}
- {% if countLimit == 0 %}
-
- {{ formatAmountBySymbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
+ {% for budgetLimit in budget.budgeted %}
+ {% if null == budget.spent[budgetLimit.currency_id] %}
+
+ {{ formatAmountBySymbol(budgetLimit.amount, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
+ ({{ formatAmountBySymbol(budgetLimit.amount / activeDaysLeft, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
- {% endif %}
+ {% endif %}
+ {% endfor %}
+ |
+
+ {% endfor %}
+