fixed number format for address transactions

This commit is contained in:
Akinwale Ariwodola 2017-06-16 08:42:42 +01:00
parent e5bb7e470d
commit a2f092ddac

View file

@ -181,7 +181,7 @@
<div class="credit">+<?php echo number_format($tx->CreditAmount, 8, '.', '') ?> LBC</div>
<div class="debit">-<?php echo number_format($tx->DebitAmount, 8, '.', '') ?> LBC</div>
<?php else: ?>
<?php echo (($tx->DebitAmount > 0) ? '-' : '+'); ?><?php echo number_format((($tx->DebitAmount > 0) ? $tx->DebitAmount : $tx->CreditAmount), 8, '.', '') ?> LBC
<?php echo (($tx->DebitAmount > 0) ? '-' : '+'); ?><?php echo number_format((($tx->DebitAmount > 0) ? $tx->DebitAmount : $tx->CreditAmount), 8, '.', ',') ?> LBC
<?php endif; ?>
</td>
</tr>