|
Lines 197-202
Link Here
|
| 197 |
<li> |
197 |
<li> |
| 198 |
<span class="label">Guarantees:</span> |
198 |
<span class="label">Guarantees:</span> |
| 199 |
<ul> |
199 |
<ul> |
|
|
200 |
[% IF guarantees_fines and guarantees_fines > 0 %] |
| 201 |
<li class="guarantees-fines"> |
| 202 |
<span class="circ-hlt">Charges:</span> |
| 203 |
Patron's guarantees collectively owe [% guarantees_fines | $Price %]. |
| 204 |
<a id="view-guarantees-finesandcharges" href="#guarantees-finesandcharges" >See all charges.</a> |
| 205 |
</li> |
| 206 |
[% END %] |
| 200 |
[% FOREACH guarantee IN guarantees %] |
207 |
[% FOREACH guarantee IN guarantees %] |
| 201 |
[% IF logged_in_user.can_see_patron_infos( guarantee ) %] |
208 |
[% IF logged_in_user.can_see_patron_infos( guarantee ) %] |
| 202 |
<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li> |
209 |
<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li> |
|
Lines 652-657
Link Here
|
| 652 |
<a href="#finesandcharges">Charges ([% fines | $Price %])</a> |
659 |
<a href="#finesandcharges">Charges ([% fines | $Price %])</a> |
| 653 |
</li> |
660 |
</li> |
| 654 |
[% END %] |
661 |
[% END %] |
|
|
662 |
[% IF ( guarantees_fines ) %] |
| 663 |
<li id="guarantees-finestab"> |
| 664 |
<a href="#guarantees-finesandcharges">Guarantees' charges ([% guarantees_fines | $Price %])</a> |
| 665 |
</li> |
| 666 |
[% END %] |
| 655 |
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] |
667 |
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] |
| 656 |
<li> |
668 |
<li> |
| 657 |
<a href="#reserves" id="holds-tab">Holds ([% holds_count || 0 | html %])</a> |
669 |
<a href="#reserves" id="holds-tab">Holds ([% holds_count || 0 | html %])</a> |
|
Lines 726-731
Link Here
|
| 726 |
</div> |
738 |
</div> |
| 727 |
[% END %] |
739 |
[% END %] |
| 728 |
|
740 |
|
|
|
741 |
[% IF ( guarantees_fines ) %] |
| 742 |
<div id="guarantees-finesandcharges"> |
| 743 |
<table id="tguaranteesfines"> |
| 744 |
<thead> |
| 745 |
<tr> |
| 746 |
<th>Guarantee</th> |
| 747 |
<th>Amount outstanding</th> |
| 748 |
</tr> |
| 749 |
</thead> |
| 750 |
[% FOREACH guarantee IN guarantees %] |
| 751 |
<tr> |
| 752 |
<td>[% INCLUDE 'patron-title.inc' patron=guarantee hide_patron_infos_if_needed=1 %]</td> |
| 753 |
[% IF logged_in_user.can_see_patron_infos( guarantee ) %] |
| 754 |
<td>[% guarantee.account.balance | $Price %]</td> |
| 755 |
[% ELSE %] |
| 756 |
<td>-</td> |
| 757 |
[% END %] |
| 758 |
</tr> |
| 759 |
[% END %] |
| 760 |
<tfoot> |
| 761 |
<td>Total due</td> |
| 762 |
<td>[% guarantees_fines | $Price %]</td> |
| 763 |
</tfoot> |
| 764 |
</table> |
| 765 |
</div> |
| 766 |
[% END %] |
| 767 |
|
| 729 |
[% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %] |
768 |
[% IF CAN_user_clubs && ( enrollments.count || enrollable.count ) %] |
| 730 |
<div id="clubs-tab"> |
769 |
<div id="clubs-tab"> |
| 731 |
Loading... |
770 |
Loading... |
|
Lines 903-908
Link Here
|
| 903 |
$("#view_restrictions").on("click",function(){ |
942 |
$("#view_restrictions").on("click",function(){ |
| 904 |
$('#debarments-tab-link').click(); |
943 |
$('#debarments-tab-link').click(); |
| 905 |
}); |
944 |
}); |
|
|
945 |
|
| 946 |
$("#view-guarantees-finesandcharges").on("click",function(){ |
| 947 |
$('#guarantees-finestab a').click(); |
| 948 |
}); |
| 949 |
|
| 906 |
}); |
950 |
}); |
| 907 |
function uncheck_sibling(me){ |
951 |
function uncheck_sibling(me){ |
| 908 |
nodename=me.getAttribute("name"); |
952 |
nodename=me.getAttribute("name"); |