Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Spent amount / withdrawals are negative, #129.
James Colee044199693b3
diff --git a/resources/twig/budgets/show.twig b/resources/twig/budgets/show.twigindex 4f1decf607..63f1e90c32 100644--- a/resources/twig/budgets/show.twig+++ b/resources/twig/budgets/show.twig@@ -70,7 +70,7 @@{% set overspent = rep.amount + spentInRep < 0 %}{% if overspent %}- {% set pct = (spentInRep != 0 ? (rep.amount / (spentInRep*-1))*100 : 0) %}+ {% set pct = (spentInRep != 0 ? (rep.amount / (spentInRep*-1))*100 : 0) %} <!-- must have -1 here --><div class="progress progress-striped"><div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="{{ pct|round }}" aria-valuemin="0"aria-valuemax="100" style="width: {{ pct|round }}%;"></div>@@ -79,7 +79,7 @@</div>{% else %}{% set amount = rep.amount %}- {% set pct = (amount != 0 ? (((spentInRep*-1) / amount)*100) : 0) %}+ {% set pct = (amount != 0 ? (((spentInRep*-1) / amount)*100) : 0) %} <!-- must have -1 here --><div class="progress progress-striped"><div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="{{ pct|round }}" aria-valuemin="0"aria-valuemax="100" style="width: {{ pct|round }}%;"></div>diff --git a/resources/twig/list/piggy-bank-events.twig b/resources/twig/list/piggy-bank-events.twigindex b6e7ffa8b5..14761b5007 100644--- a/resources/twig/list/piggy-bank-events.twig+++ b/resources/twig/list/piggy-bank-events.twig@@ -24,10 +24,8 @@<td>{% if event.amount < 0 %}-- <span class="text-danger">{{ trans('firefly.removed_amount', {amount: (event.amount*-1)|formatAmountPlain})|raw }}</span>+ <span class="text-danger">{{ trans('firefly.removed_amount', {amount: (event.amount)|formatAmountPlain})|raw }}</span>{% else %}-<span class="text-success">{{ trans('firefly.added_amount', {amount: (event.amount)|formatAmountPlain})|raw }}</span>{% endif %}</td>