|
Lines 116-121
Link Here
|
| 116 |
<h4>You have no fines or charges</h4> |
116 |
<h4>You have no fines or charges</h4> |
| 117 |
[% END %] |
117 |
[% END %] |
| 118 |
|
118 |
|
|
|
119 |
[% FOREACH r IN relatives %] |
| 120 |
<h3 id="g[% r.patron.id %]">[% r.patron.firstname %] [% r.patron.surname %]'s fines and charges</h3> |
| 121 |
|
| 122 |
<table class="table table-bordered table-striped" id="finestable-[% r.id %]"> |
| 123 |
<thead> |
| 124 |
<tr> |
| 125 |
<th class="title-string">Date</th> |
| 126 |
<th>Description</th> |
| 127 |
<th>Fine amount</th> |
| 128 |
<th>Amount outstanding</th> |
| 129 |
</tr> |
| 130 |
</thead> |
| 131 |
|
| 132 |
<tbody> |
| 133 |
[% SET account_sum = 0 %] |
| 134 |
[% FOREACH a IN r.accountlines %] |
| 135 |
[% SET account_sum = account_sum + a.amountoutstanding %] |
| 136 |
<tr> |
| 137 |
<td><span title="[% a.date %]">[% a.date | $KohaDates %]</span></td> |
| 138 |
<td> |
| 139 |
[% SWITCH a.accounttype %] |
| 140 |
[% CASE 'Pay' %]Payment, thanks |
| 141 |
[% CASE 'Pay00' %]Payment, thanks (cash via SIP2) |
| 142 |
[% CASE 'Pay01' %]Payment, thanks (VISA via SIP2) |
| 143 |
[% CASE 'Pay02' %]Payment, thanks (credit card via SIP2) |
| 144 |
[% CASE 'N' %]New card |
| 145 |
[% CASE 'F' %]Fine |
| 146 |
[% CASE 'A' %]Account management fee |
| 147 |
[% CASE 'M' %]Sundry |
| 148 |
[% CASE 'L' %]Lost item |
| 149 |
[% CASE 'W' %]Writeoff |
| 150 |
[% CASE 'FU' %]Accruing fine |
| 151 |
[% CASE 'HE' %]Hold waiting too long |
| 152 |
[% CASE 'Rent' %]Rental fee |
| 153 |
[% CASE 'FOR' %]Forgiven |
| 154 |
[% CASE 'LR' %]Lost item fee refund |
| 155 |
[% CASE 'PF' %]Processing fee |
| 156 |
[% CASE 'PAY' %]Payment |
| 157 |
[% CASE 'WO' %]Writeoff |
| 158 |
[% CASE 'C' %]Credit |
| 159 |
[% CASE 'CR' %]Credit |
| 160 |
[% CASE %][% a.accounttype %] |
| 161 |
[%- END -%] |
| 162 |
[%- IF a.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', a.payment_type, 1) %][% END %] |
| 163 |
[%- IF a.description %], [% a.description %][% END %] |
| 164 |
[% IF a.itemnumber %]([% a.item.biblio.title %])[% END %] |
| 165 |
</td> |
| 166 |
[% IF ( a.amount < 0 ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% a.amount | $Price %]</td> |
| 167 |
[% IF ( a.amountoutstanding < 0 ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% a.amountoutstanding | $Price %]</td> |
| 168 |
</tr> |
| 169 |
[% END %] |
| 170 |
</tbody> |
| 171 |
|
| 172 |
<tfoot> |
| 173 |
<tr> |
| 174 |
<th class="sum" colspan="3">Total due</th> |
| 175 |
<td class="sum">[% account_sum | $Price %]</td> |
| 176 |
</tr> |
| 177 |
</tfoot> |
| 178 |
</table> |
| 179 |
[% END %] |
| 180 |
|
| 119 |
[%- BLOCK account_status_description -%] |
181 |
[%- BLOCK account_status_description -%] |
| 120 |
[%- SWITCH account.status -%] |
182 |
[%- SWITCH account.status -%] |
| 121 |
[%- CASE 'UNRETURNED' -%]<span> (Accruing)</span> |
183 |
[%- CASE 'UNRETURNED' -%]<span> (Accruing)</span> |