-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebitcard__transactions.tpl
111 lines (104 loc) · 3.19 KB
/
debitcard__transactions.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{*
* Debitcard Transactions
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2014-2017 Jacques Marneweck. All rights strictly reserved.
*}
{include file="header.tpl" title="Debit Card Transactions Page" nav="accounts"}
<h1 class="hidden-print">Debit Card Transactions</h1>
<table class="table table-bordered">
<thead>
<tr>
<th>Account Number</th>
<th>Description</th>
<th>Debit Card Number</th>
<th>Card Status</th>
<th>Actual Balance</th>
<th>Available Balance</th>
</tr>
</thead>
<tbody>
<tr>
<td>{$account.account_number}</td>
<td>{$account.description}</td>
<td>{$account.masked_cardnumber}</td>
<td>{$balances->return->cardBalanceRecords->status}</td>
<td>R {($balances->return->cardBalanceRecords->actualBalance)|string_format:"%.2f"}</td>
<td>R {($balances->return->cardBalanceRecords->availableBalance)|string_format:"%.2f"}</td>
</tr>
</tbody>
</table>
<h4 class="page-header">Outstanding Authorisations</h4>
<table class="table table-striped table-condensed">
<thead>
<tr>
<th class="col-md-2">Auth Date</th>
<th class="col-md-2">Expires</th>
<th>Description</th>
<th>Type</th>
<th>Sig/Pin</th>
<th class="col-md-1">Amount</th>
<th class="col-md-2">Status</th>
</tr>
</thead>
<tbody>
{if isset($preauths->return->outstAuthRecords)}
{foreach $preauths->return->outstAuthRecords item=row}
<tr>
<td>{$row->transactionDate}</td>
<td>{$row->expireDate}</td>
<td>{$row->description}</td>
<td>{$row->transactionType}</td>
<td> </td>
<td><div class="pull-right">R {$row->transactionAmount|string_format:"%.2f"}</td>
<td>{$row->international}</td>
</tr>
{foreachelse}
<tr>
<td colspan="7">There are no outstanding pre auth transactions.</td>
</tr>
{/foreach}
{else}
<tr>
<td colspan="7">There are no outstanding pre auth transactions.</td>
</tr>
{/if}
</tbody>
</table>
<h4 class="page-header">Transactions</h4>
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Txn Ref</th>
<th>FNDS TransId</th>
<th class="col-md-2">Auth Date</th>
<th class="col-md-2">Cleared Date</th>
<th>Card Id</th>
<th>Description</th>
<th class="col-md-1">Debit (-)</th>
<th class="col-md-1">Credit (+)</th>
</tr>
</thead>
<tbody>
{foreach $transactions item=row}
<tr>
<td>{$row->transId|find_txn_ref_for_fnds_trans_id}</td>
<td>{$row->transId|escape}</td>
<td>{$row->date|escape}</td>
<td>{$row->clearedDate|escape}</td>
<td>{$row->cardId|escape}</td>
<td>{$row->description|escape}</td>
<td><div class="pull-right">ZAR {($row->debit)|number_format:2:'.':','}</div></td>
<td><div class="pull-right">ZAR {($row->credit)|number_format:2:'.':','}</div></td>
</tr>
{foreachelse}
<tr>
<td colspan="9">There are no transactions in past 90 day time span.</td>
</tr>
{/foreach}
</tbody>
</table>
{include file="footer.tpl"}