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 |
[% PROCESS account_type_description account=a %] |
140 |
[%- IF a.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', a.payment_type, 1) %][% END %] |
141 |
[%- IF a.description %], [% a.description %][% END %] |
142 |
[% IF a.itemnumber %]([% a.item.biblio.title %])[% END %] |
143 |
</td> |
144 |
[% IF ( a.amount < 0 ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% a.amount | $Price %]</td> |
145 |
[% IF ( a.amountoutstanding < 0 ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% a.amountoutstanding | $Price %]</td> |
146 |
</tr> |
147 |
[% END %] |
148 |
</tbody> |
149 |
|
150 |
<tfoot> |
151 |
<tr> |
152 |
<th class="sum" colspan="3">Total due</th> |
153 |
<td class="sum">[% account_sum | $Price %]</td> |
154 |
</tr> |
155 |
</tfoot> |
156 |
</table> |
157 |
[% END %] |
158 |
|
119 |
[%- BLOCK account_type_description -%] |
159 |
[%- BLOCK account_type_description -%] |
120 |
[%- SWITCH account.accounttype -%] |
160 |
[%- SWITCH account.accounttype -%] |
121 |
[%- CASE 'Pay' -%]<span>Payment |
161 |
[%- CASE 'Pay' -%]<span>Payment |