From e323f5a2d56eb259c697d49d434a24c1e4fe7b11 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 2 Jan 2017 19:27:27 +0100 Subject: [PATCH] This should fix most amounts for #511 --- resources/views/list/accounts.twig | 13 ++++++++++--- resources/views/list/bills.twig | 8 ++++++-- resources/views/list/journals-tasker.twig | 7 ++++--- resources/views/list/piggy-bank-events.twig | 2 +- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/resources/views/list/accounts.twig b/resources/views/list/accounts.twig index 12b6111c8e..dbf3d7436c 100644 --- a/resources/views/list/accounts.twig +++ b/resources/views/list/accounts.twig @@ -10,7 +10,8 @@ {{ trans('list.currentBalance') }} {{ trans('list.active') }} {{ trans('list.lastActivity') }} - {{ trans('list.balanceDiff', {'start' : Session.get('start').formatLocalized(monthAndDayFormat),'end' : Session.get('end').formatLocalized(monthAndDayFormat)}) }} + {{ trans('list.balanceDiff', {'start' : Session.get('start').formatLocalized(monthAndDayFormat),'end' : Session.get('end').formatLocalized(monthAndDayFormat)}) }} @@ -33,7 +34,11 @@ {% endif %} {{ account.iban }} - {{ account.endBalance|formatAmount }} + + + {{ account.endBalance|formatAmount }} + + {% if account.active %} @@ -50,8 +55,10 @@ {{ 'never'|_ }} {% endif %} - + + {{ (account.difference)|formatAmount }} + diff --git a/resources/views/list/bills.twig b/resources/views/list/bills.twig index 2bf6f5b128..7e6d1af0b1 100644 --- a/resources/views/list/bills.twig +++ b/resources/views/list/bills.twig @@ -29,11 +29,15 @@ {{ match }} {% endfor %} - + + {{ entry.amount_min|formatAmount }} + - + + {{ entry.amount_max|formatAmount }} + {% if entry.paidDates.count() == 0 and entry.payDates.count() == 0 and entry.active %} diff --git a/resources/views/list/journals-tasker.twig b/resources/views/list/journals-tasker.twig index 37cbcd1b72..a52df725be 100644 --- a/resources/views/list/journals-tasker.twig +++ b/resources/views/list/journals-tasker.twig @@ -1,6 +1,6 @@ {{ journals.render|raw }} - +
@@ -62,12 +62,13 @@ {% endif %} - -
+ + {{ formatByCode(transaction.transaction_currency_code, transaction.transaction_amount) }} {{ optionalJournalAmount(transaction.journal_id, transaction.transaction_amount, transaction.transaction_currency_code, transaction.transaction_type_type) }} - + + {% if event.amount < 0 %} {{ trans('firefly.removed_amount', {amount: (event.amount)|formatAmountPlain})|raw }} {% else %}