mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 09:52:20 +00:00
Fix #11328
This commit is contained in:
@@ -122,6 +122,9 @@ class IndexController extends Controller
|
|||||||
$availableBudgets = $this->getAllAvailableBudgets($start, $end);
|
$availableBudgets = $this->getAllAvailableBudgets($start, $end);
|
||||||
// get all active budgets:
|
// get all active budgets:
|
||||||
$budgets = $this->getAllBudgets($start, $end, $currencies, $this->primaryCurrency);
|
$budgets = $this->getAllBudgets($start, $end, $currencies, $this->primaryCurrency);
|
||||||
|
|
||||||
|
// echo '<pre>';
|
||||||
|
// var_dump($budgets[0]);exit;
|
||||||
$sums = $this->getSums($budgets);
|
$sums = $this->getSums($budgets);
|
||||||
|
|
||||||
// get budgeted for default currency:
|
// get budgeted for default currency:
|
||||||
|
|||||||
@@ -366,13 +366,21 @@
|
|||||||
</span>
|
</span>
|
||||||
<br/>
|
<br/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if spentInfo.currency_id == budgetLimit.currency_id and not budgetLimit.in_range %}
|
{% if spentInfo.currency_id == budgetLimit.currency_id and not budgetLimit.in_range and 0.0 == budgetLimit.total_days %}
|
||||||
<span class="left_span" data-currency="{{ spentInfo.currency_id }}" data-limit="{{ budgetLimit.id }}"
|
<span class="left_span" data-currency="{{ spentInfo.currency_id }}" data-limit="{{ budgetLimit.id }}"
|
||||||
data-value="{{ spentInfo.spent + budgetLimit.amount }}" class="amount_left">
|
data-value="{{ spentInfo.spent + budgetLimit.amount }}" class="amount_left">
|
||||||
{{ formatAmountBySymbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
|
{{ formatAmountBySymbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
|
||||||
</span>
|
</span>
|
||||||
<span class="text-muted">({{ 'unknown'|_ }})</span>
|
<span class="text-muted">({{ 'unknown'|_ }})</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if spentInfo.currency_id == budgetLimit.currency_id and not budgetLimit.in_range and 0.0 != budgetLimit.total_days %}
|
||||||
|
<span class="left_span" data-currency="{{ spentInfo.currency_id }}" data-limit="{{ budgetLimit.id }}"
|
||||||
|
data-value="{{ spentInfo.spent + budgetLimit.amount }}" class="amount_left">
|
||||||
|
{{ formatAmountBySymbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
|
||||||
|
</span>
|
||||||
|
({{ formatAmountBySymbol((spentInfo.spent + budgetLimit.amount) / budgetLimit.total_days, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if countLimit == 0 %}
|
{% if countLimit == 0 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user