Skip to content

Commit

Permalink
Link to debit card transactions. Format available balance for a busin…
Browse files Browse the repository at this point in the history
…ess account.
  • Loading branch information
jacques committed Oct 19, 2017
1 parent 4242462 commit d55222e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion accounts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<td><div class="pull-right">R {($row.balance/100)|string_format:"%.2f"}</div></td>
{/if}
{else}
<td><i class="fa fa-credit-card"></i> Diamond Cash Card &mdash; {$row.masked_cardnumber} <div class="pull-right"></div></td>
<td><i class="fa fa-credit-card"></i> Diamond Cash Card &mdash; {$row.masked_cardnumber} <div class="pull-right"><a href="/debitcards/{$row.uuid}/transactions">View Transactions</a> &bull; </div></td>
<td><div class="pull-right">R {($row.account_number|find_actual_balance_for_debitcard)/100|string_format:"%.2f"}</div></td>
<td><div class="pull-right">R {($row.account_number|find_available_balance_for_debitcard)/100|string_format:"%.2f"}</div></td>
{/if}
Expand All @@ -72,6 +72,7 @@
<tr>
<td><i class="fa fa-money"></i> Diamond Business Account &mdash; {$row.account_number} <div class="pull-right"><a href="/businessaccounts/{$row.uuid}/users">View Users</a> &bull; <a href="/businessaccounts/{$row.uuid}/transactions">View Transactions</a> &bull; <a href="/businessaccounts/{$row.uuid}/statements">View statements</a></div></td>
<td><div class="pull-right">R {($row.balance/100)|string_format:"%.2f"}</div></td>
<td><div class="pull-right">R {($row.balance/100)|string_format:"%.2f"}</div></td>
</tr>
{/foreach}
</tbody>
Expand Down

0 comments on commit d55222e

Please sign in to comment.