Code cleanup. [skip ci]

This commit is contained in:
James Cole 2016-12-29 09:05:02 +01:00
parent de56c18c6e
commit 1e9aaf2d2a
2 changed files with 1 additions and 7 deletions

View File

@ -134,7 +134,7 @@ class Transaction extends Twig_Extension
// not equal to transaction amount?
if (bccomp($amount, $transactionAmount) !== 0 && bccomp($amount, bcmul($transactionAmount, '-1')) !== 0) {
//$currency =
return sprintf(' (%s)', 'x'); // Amount::formatWithCode($code, $amount, true)
return sprintf(' (%s)', Amount::formatByCode($code, $amount, true));
}
return '';

View File

@ -26,12 +26,6 @@
{% endif %}
</tr>
</thead>
<!-- to be fixed:
SORTING
ATTACHMENT COUNT
SPLIT JOURNAL INDICATOR
-->
<tbody>
{% for transaction in journals %}
<tr class="drag" data-date="{{ transaction.date.format('Y-m-d') }}" data-id="{{ transaction.journal_id }}">