Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix https://github.com/firefly-iii/firefly-iii/issues/8457
James Cole642539e410d2
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.phpindex c5b325b28f..06794b2d84 100644--- a/resources/lang/en_US/firefly.php+++ b/resources/lang/en_US/firefly.php@@ -1647,6 +1647,7 @@ return ['transactionsWithoutBudget' => 'Expenses without budget','transactions_no_budget' => 'Expenses without budget between :start and :end','spent_between' => 'Already spent between :start and :end',+ 'spent_between_left' => 'Spent :spent between :start and :end, leaving :left.','set_available_amount' => 'Set available amount','update_available_amount' => 'Update available amount','ab_basic_modal_explain' => 'Use this form to indicate how much you expect to be able to budget (in total, in :currency) in the indicated period.',diff --git a/resources/views/budgets/index.twig b/resources/views/budgets/index.twigindex 932252a761..7fa49ed8c3 100644--- a/resources/views/budgets/index.twig+++ b/resources/views/budgets/index.twig@@ -154,8 +154,13 @@{# info text to show how much is spent (in currency). #}<div class="row spentInfo" data-id="{{ budget.id }}"><div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">- <small>{{ trans('firefly.spent_between', {start: budget.start_date.isoFormat(monthAndDayFormat), end: budget.end_date.isoFormat(monthAndDayFormat)}) }}- : {{ formatAmountBySymbol(budget.spent, budget.transaction_currency.symbol, budget.transaction_currency.decimal_places) }} </small>+ <small>{{ trans('firefly.spent_between_left', {+ start: budget.start_date.isoFormat(monthAndDayFormat),+ end: budget.end_date.isoFormat(monthAndDayFormat),+ spent: formatAmountBySymbol(budget.spent, budget.transaction_currency.symbol, budget.transaction_currency.decimal_places),+ left: formatAmountBySymbol(budget.budgeted + budget.spent, budget.transaction_currency.symbol, budget.transaction_currency.decimal_places),+ })|raw }}+ </small></div></div>