This fixes part of #738 (not everything).

This commit is contained in:
James Cole
2017-08-19 18:24:04 +02:00
parent c4fe9a6a51
commit bd924b993b
2 changed files with 22 additions and 5 deletions

View File

@@ -56,9 +56,16 @@
{% endif %}
{# TOTAL AMOUNT IS STATIC TEXT #}
{# TODO this does not reflect the actual currency (currencies) #}
{{ ExpandedForm.staticText('journal_amount', preFilled.journal_amount|formatAmount ) }}
<input type="hidden" name="journal_amount" value="{{ preFilled.journal_amount }}"/>
{% if preFilled.what == 'withdrawal' or preFilled.what == 'transfer' %}
{{ ExpandedForm.staticText('journal_amount', formatAmountByAccount(accountArray[preFilled.journal_source_account_id], preFilled.journal_amount, true) ) }}
<input type="hidden" name="journal_amount" value="{{ preFilled.journal_amount }}"/>
{% endif %}
{% if preFilled.what == 'deposit' %}
{{ ExpandedForm.staticText('journal_amount', formatAmountByAccount(accountArray[preFilled.journal_destination_account_id], preFilled.journal_amount, true) ) }}
<input type="hidden" name="journal_amount" value="{{ preFilled.journal_amount }}"/>
{% endif %}
{# DATE #}
{{ ExpandedForm.date('date', journal.date) }}