From da60bfbcff6ea7765d3a83f367222d04a8d0c4e0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 15 Oct 2016 14:05:56 +0200 Subject: [PATCH] Better text [skip ci] --- resources/views/transactions/show.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twig index dffc57e658..5a7e7f42d3 100644 --- a/resources/views/transactions/show.twig +++ b/resources/views/transactions/show.twig @@ -122,14 +122,14 @@ {{ journal.getMeta('invoice_date').formatLocalized(monthAndDayFormat) }} {% endif %} - {% if journal.hasMeta('internal_reference') %} + {% if journal.hasMeta('internal_reference') and journal.getMeta('internal_reference') != "" %} {{ trans('list.internal_reference') }} {{ journal.getMeta('internal_reference') }} {% endif %} - {% if journal.hasMeta('notes') %} + {% if journal.hasMeta('notes') and journal.getMeta('notes') != "" %} {{ trans('list.notes') }} {{ journal.getMeta('notes')|nl2br }} @@ -237,7 +237,7 @@ {% for transaction in transactions %} - #{{ transaction.source_id }} + {% if transaction.description == "" %} {{ journal.description }} {% else %}