{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, transactionGroup) }} {% endblock %} {% block content %} {% if message == 'created' %}
| {{ trans('list.type') }} | {{ first.transactiontype.type|_ }} | 
| {{ trans('list.description') }} | {% if splits == 1 %} {{ first.description }} {% else %} {{ transactionGroup.title }} {% endif %} | 
| {{ trans('list.date') }} | {{ first.date.formatLocalized(dateTimeFormat) }} | 
| {{ 'source_accounts'|_ }} | {% for journal in groupArray.transactions %} {{ journal.source_name }} {% if loop.index0 != groupArray.transactions|length -1 %}, {% endif %} {% endfor %} | 
| {{ 'destination_accounts'|_ }} | {% for journal in groupArray.transactions %} {{ journal.destination_name }} {% if loop.index0 != groupArray.transactions|length -1 %}, {% endif %} {% endfor %} | 
| {{ 'total_amount'|_ }} | {% for amount in amounts %} {% if type == 'Withdrawal' or type == 'Deposit' %} {{ formatAmountBySymbol(amount.amount*-1,amount.symbol, amount.decimal_places) }}, {% elseif type == 'Transfer' %} {{ formatAmountBySymbol(amount.amount, amount.symbol, amount.decimal_places, false) }}, {% endif %} {% endfor %} | 
| {{ journal.source_name }} → {% if type == 'Withdrawal' or type == 'Deposit' %} {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }} {% elseif type == 'Transfer' %} {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places, false) }} {% endif %} {% if null != journal.foreign_amount %} {% if type == 'Withdrawal' or type == 'Deposit' %} ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) {% elseif type == 'Transfer' %} ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }}) {% endif %} {% endif %} → {{ journal.destination_name }} | |
| {{ 'category'|_ }} | {{ journal.category_name }} | 
| {{ 'budget'|_ }} | {{ journal.budget_name }} | 
| {{ 'bill'|_ }} | {{ journal.bill_name }} | 
| {{ trans('list.'~dateField) }} | {{ journalGetMetaDate(journal.transaction_journal_id, dateField).formatLocalized(monthAndDayFormat) }} | 
| {{ trans('list.'~metaField) }} | {{ journalGetMetaField(journal.transaction_journal_id, metaField) }} | 
| {{ trans('list.notes') }} | {{ journal.notes|markdown }} | 
| {{ 'tags'|_ }} | {% for tag in journal.tags %} {{ tag }}{% endfor %} | 
| {{ link.link }} "{{ link.description }}" ({{ link.amount|raw }}) {% if '' != link.foreign_amount %} ({{ link.foreign_amount|raw }}) {% endif %} | 
| {% if attachment.file_exists %}
                                                
                                                
                                                    {% if attachment.title %}
                                                        {{ attachment.title }}
                                                    {% else %}
                                                        {{ attachment.filename }}
                                                    {% endif %}
                                                
                                                ({{ attachment.size|filesize }})
                                                {% if null != attachment.notes  and '' != attachment.notes %}
                                                    {{ attachment.notes|markdown }}
                                                {% endif %}
                                            {% endif %}
                                            {% if not attachment.file_exists %}
                                                
                                                {% if attachment.title %}
                                                    {{ attachment.title }}
                                                {% else %}
                                                    {{ attachment.filename }}
                                                {% endif %} {{ 'attachment_not_found'|_ }} {% endif %} | 
| {{ event.amount|raw }} | {{ event.piggy }} | 
| {{ ('this_'~(what|lower))|_ }}
                                    {% if link.source.id == journal.id %}
                                        {{ journalLinkTranslation('outward', link.linkType.outward) }}
                                        
                                            #{{ link.destination.id }}: {{ link.destination.description }}
                                        
                                        ({{ link.destination|journalTotalAmount }})
                                    {% else %}
                                        {{ journalLinkTranslation('inward', link.linkType.inward) }}
                                        
                                            #{{ link.source.id }}: {{ link.source.description }}
                                        ({{ link.source|journalTotalAmount }})
                                    {% endif %}
                                    {% if link.notes.count == 1 %} {{ link.notes.first.text|markdown }} {% endif %} | 
{% endif %}
| {{ trans('list.source_account') }} | {{ trans('list.destination_account') }} | {{ trans('list.amount') }} | 
|---|---|---|
| {% if transaction.source_type == 'Cash account' %} ({{ 'cash'|_ }}) {% else %} {{ transaction.source_name }} {% endif %} | {% if transaction.destination_type == 'Cash account' %} ({{ 'cash'|_ }}) {% else %} {{ transaction.destination_name }} {% endif %} | {{ transaction|transactionXArrayAmount }}{% endif %} {% endfor %} |