Lines 1-5
Link Here
|
1 |
[% USE Koha %] |
1 |
[% USE Koha %] |
2 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
|
|
3 |
[% USE Currency %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
<title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title> |
5 |
<title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title> |
5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
6 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
Lines 87-121
Link Here
|
87 |
</table> |
88 |
</table> |
88 |
[% END %] |
89 |
[% END %] |
89 |
|
90 |
|
90 |
[% IF ( accounts && ( totaldue != '0.00' ) ) %] |
91 |
[% IF account_balance %] |
91 |
<table> |
92 |
[% IF account_debits %] |
92 |
<caption>Account fines and payments</caption> |
93 |
<table> |
93 |
<tr> |
94 |
<caption>Account fees</caption> |
94 |
<th>Description of charges</th> |
95 |
<tr> |
95 |
<th>Date</th> |
96 |
<th>Description</th> |
96 |
<th>Amount</th> |
97 |
<th>Date</th> |
97 |
<th>Outstanding</th> |
98 |
<th>Amount</th> |
98 |
</tr> |
99 |
<th>Outstanding</th> |
99 |
[% FOREACH account IN accounts %] |
100 |
</tr> |
100 |
[% NEXT IF account.amountoutstanding == '0.00' %] |
101 |
[% FOREACH d IN account_debits %] |
101 |
<tr> |
102 |
[% IF d.amount_outstanding > 0 %] |
102 |
<td> |
103 |
<tr> |
103 |
[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&itemnumber=[% account.itemnumber %]">[% END %] |
104 |
<td>[% d.description %]</td> |
104 |
[% account.description %] [% IF ( account.printtitle ) %] [% account.title |html %][% END %] |
105 |
<td>[% d.created_on | $KohaDates %]</td> |
105 |
[% IF ( account.itemnumber ) %]</a>[% END %] |
106 |
<td>[% d.amount_original | $Currency %]</td> |
106 |
</td> |
107 |
<td>[% d.amount_outstanding | $Currency %]</td> |
107 |
<td>[% account.date | $KohaDates %]</td> |
108 |
</tr> |
108 |
<td>[% account.amount %]</td> |
109 |
[% END %] |
109 |
<td>[% account.amountoutstanding %]</td> |
110 |
[% END %] |
110 |
</tr> |
111 |
<tfoot> |
|
|
112 |
<tr> |
113 |
<td colspan="3">Total due</td> |
114 |
<td colspan="2">[% totaldue | $Currency %]</td> |
115 |
</tr> |
116 |
</tfoot> |
117 |
</table> |
118 |
[% END %] |
119 |
|
120 |
[% FOREACH c IN account_credits %] |
121 |
[% total_remaining = total_remaining + c.amount_remaining %] |
122 |
[% END %] |
123 |
[% IF total_remaining %] |
124 |
<table> |
125 |
<caption>Account payments</caption> |
126 |
<tr> |
127 |
<th>Date</th> |
128 |
<th>Amount</th> |
129 |
<th>Balance remaining</th> |
130 |
</tr> |
131 |
[% FOREACH c IN account_credits %] |
132 |
[% IF c.amount_remaining > 0 %] |
133 |
<tr> |
134 |
<td>[% c.created_on | $KohaDates %]</td> |
135 |
<td>[% c.amount_paid | $Currency %]</td> |
136 |
<td>[% c.amount_remaining | $Currency %]</td> |
137 |
</tr> |
138 |
[% END %] |
139 |
[% END %] |
140 |
</table> |
111 |
[% END %] |
141 |
[% END %] |
112 |
<tfoot> |
|
|
113 |
<tr> |
114 |
<td colspan="3">Total due</td> |
115 |
<td colspan="2">[% totaldue %]</td> |
116 |
</tr> |
117 |
</tfoot> |
118 |
</table> |
119 |
[% END %] |
142 |
[% END %] |
120 |
|
143 |
|
121 |
[% INCLUDE 'intranet-bottom.inc' %] |
144 |
[% INCLUDE 'intranet-bottom.inc' %] |