|
Lines 177-182
Link Here
|
| 177 |
[% ELSE %] |
177 |
[% ELSE %] |
| 178 |
<h4>You have no fines or charges</h4> |
178 |
<h4>You have no fines or charges</h4> |
| 179 |
[% END %] |
179 |
[% END %] |
|
|
180 |
|
| 181 |
[% FOREACH r IN relatives %] |
| 182 |
<h3 id="g[% r.patron.id %]">[% r.patron.firstname %] [% r.patron.surname %]'s fines and charges</h3> |
| 183 |
|
| 184 |
<table class="table table-bordered table-striped" id="finestable-[% r.id %]"> |
| 185 |
<thead> |
| 186 |
<tr> |
| 187 |
<th class="title-string">Date</th> |
| 188 |
<th>Description</th> |
| 189 |
<th>Fine amount</th> |
| 190 |
<th>Amount outstanding</th> |
| 191 |
</tr> |
| 192 |
</thead> |
| 193 |
|
| 194 |
<tbody> |
| 195 |
[% SET account_sum = 0 %] |
| 196 |
[% FOREACH a IN r.accountlines %] |
| 197 |
[% SET account_sum = account_sum + a.amountoutstanding %] |
| 198 |
<tr> |
| 199 |
<td><span title="[% a.date %]">[% a.date | $KohaDates %]</span></td> |
| 200 |
<td> |
| 201 |
[% SWITCH a.accounttype %] |
| 202 |
[% CASE 'Pay' %]Payment, thanks |
| 203 |
[% CASE 'Pay00' %]Payment, thanks (cash via SIP2) |
| 204 |
[% CASE 'Pay01' %]Payment, thanks (VISA via SIP2) |
| 205 |
[% CASE 'Pay02' %]Payment, thanks (credit card via SIP2) |
| 206 |
[% CASE 'N' %]New card |
| 207 |
[% CASE 'F' %]Fine |
| 208 |
[% CASE 'A' %]Account management fee |
| 209 |
[% CASE 'M' %]Sundry |
| 210 |
[% CASE 'L' %]Lost item |
| 211 |
[% CASE 'W' %]Writeoff |
| 212 |
[% CASE 'FU' %]Accruing fine |
| 213 |
[% CASE 'HE' %]Hold waiting too long |
| 214 |
[% CASE 'Rent' %]Rental fee |
| 215 |
[% CASE 'FOR' %]Forgiven |
| 216 |
[% CASE 'LR' %]Lost item fee refund |
| 217 |
[% CASE 'PF' %]Processing fee |
| 218 |
[% CASE 'PAY' %]Payment |
| 219 |
[% CASE 'WO' %]Writeoff |
| 220 |
[% CASE 'C' %]Credit |
| 221 |
[% CASE 'CR' %]Credit |
| 222 |
[% CASE %][% a.accounttype %] |
| 223 |
[%- END -%] |
| 224 |
[%- IF a.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', a.payment_type, 1) %][% END %] |
| 225 |
[%- IF a.description %], [% a.description %][% END %] |
| 226 |
[% IF a.itemnumber %]([% a.item.biblio.title %])[% END %] |
| 227 |
</td> |
| 228 |
[% IF ( a.amount < 0 ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% a.amount | $Price %]</td> |
| 229 |
[% IF ( a.amountoutstanding < 0 ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% a.amountoutstanding | $Price %]</td> |
| 230 |
</tr> |
| 231 |
[% END %] |
| 232 |
</tbody> |
| 233 |
|
| 234 |
<tfoot> |
| 235 |
<tr> |
| 236 |
<th class="sum" colspan="3">Total due</th> |
| 237 |
<td class="sum">[% account_sum | $Price %]</td> |
| 238 |
</tr> |
| 239 |
</tfoot> |
| 240 |
</table> |
| 241 |
[% END %] |
| 180 |
</div> <!-- / #useraccount --> |
242 |
</div> <!-- / #useraccount --> |
| 181 |
</div> <!-- / .span10 --> |
243 |
</div> <!-- / .span10 --> |
| 182 |
</div> <!-- / .row-fluid --> |
244 |
</div> <!-- / .row-fluid --> |