This commit is contained in:
James Cole 2019-08-29 08:55:23 +02:00
parent f4eca2d4ae
commit 91b6b86202

View File

@ -201,7 +201,6 @@
transaction.destination_type == 'Debt' or transaction.destination_type == 'Debt' or
transaction.destination_type == 'Mortgage' %} transaction.destination_type == 'Mortgage' %}
{# if new source is Liability, destination must be expense account. #} {# if new source is Liability, destination must be expense account. #}
{# hier ben je. #}
<input <input
autocomplete="off" autocomplete="off"
@ -275,15 +274,7 @@
</table> </table>
{#
{{ ExpandedForm.staticText('description', '<a href="'~route('transactions.show', group.id)~'">'~journal.description~'</a>') }}
{{ ExpandedForm.staticText('type', sourceType.type|_) }}
{{ ExpandedForm.staticText('date', journal.date.formatLocalized(monthAndDayFormat)) }}
#}
{# in case of withdrawal #} {# in case of withdrawal #}
{% if sourceType.type == "Withdrawal" %} {% if sourceType.type == "Withdrawal" %}
{{ ExpandedForm.staticText('source_account_asset', '<a href="'~route('accounts.show',[sourceAccount.id])~'">'~sourceAccount.name|escape~'</a>') }} {{ ExpandedForm.staticText('source_account_asset', '<a href="'~route('accounts.show',[sourceAccount.id])~'">'~sourceAccount.name|escape~'</a>') }}
{# if destination is cash, show (cash) #} {# if destination is cash, show (cash) #}
@ -294,14 +285,12 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
#}
{# in case of transfer #} {# in case of transfer #}
{% if sourceType.type == "Transfer" %} {% if sourceType.type == "Transfer" %}
{{ ExpandedForm.staticText('source_account_asset', '<a href="'~route('accounts.show',[sourceAccount.id])~'">'~sourceAccount.name|escape~'</a>') }} {{ ExpandedForm.staticText('source_account_asset', '<a href="'~route('accounts.show',[sourceAccount.id])~'">'~sourceAccount.name|escape~'</a>') }}
{{ ExpandedForm.staticText('destination_account_asset', '<a href="'~route('accounts.show',[destinationAccount.id])~'">'~destinationAccount.name|escape~'</a>') }} {{ ExpandedForm.staticText('destination_account_asset', '<a href="'~route('accounts.show',[destinationAccount.id])~'">'~destinationAccount.name|escape~'</a>') }}
{% endif %} {% endif %}
#}
</div> </div>
<div class="box-footer"> <div class="box-footer">
<a href="{{ route('transactions.show', group.id) }}" class="btn btn-danger">{{ 'cancel'|_ }}</a> <a href="{{ route('transactions.show', group.id) }}" class="btn btn-danger">{{ 'cancel'|_ }}</a>