2 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Patrons › Pay Fines for [% borrower.firstname %] [% borrower.surname %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
9 <script type= "text/javascript">
11 function enableCheckboxActions(){
12 // Enable/disable controls if checkboxes are checked
13 var checkedBoxes = $("input.cb:checked");
14 if ($(checkedBoxes).size()) {
15 $("#payselected").prop("disabled",false);
17 $("#payselected").prop("disabled",true);
20 $(document).ready(function(){
21 $('#pay-fines-form').preventDoubleFormSubmit();
22 $("#woall").click(function(event){
23 var msg = _("Are you sure you want to write off %s in outstanding fines? This cannot be undone!").format( "[% total | $Price %]" );
24 var answer = confirm(msg);
26 event.preventDefault();
29 $('#CheckAll').click(function(){
30 $("#finest").checkCheckboxes();
31 enableCheckboxActions();
34 $('#CheckNone').click(function(){
35 $("#finest").unCheckCheckboxes();
36 enableCheckboxActions();
39 $(".cb").change(function(){
40 enableCheckboxActions();
42 enableCheckboxActions();
47 <body id="pat_pay" class="pat">
48 [% INCLUDE 'header.inc' %]
49 [% INCLUDE 'patron-search.inc' %]
51 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Pay fines for [% borrower.firstname %] [% borrower.surname %]</div>
53 <div id="doc3" class="yui-t2">
58 [% INCLUDE 'members-toolbar.inc' borrowernumber=borrower.borrowernumber %]
60 <!-- The manual invoice and credit buttons -->
61 <div class="statictabs">
63 <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Account</a></li>
64 <li class="active"><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]" >Pay fines</a></li>
65 <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrower.borrowernumber %]" >Create manual invoice</a></li>
66 <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrower.borrowernumber %]" >Create manual credit</a></li>
68 <div class="tabs-container">
71 <form action="/cgi-bin/koha/members/pay.pl" method="post" id="pay-fines-form">
72 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" />
73 <p><span class="checkall"><a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a></span> | <span class="clearall"><a id="CheckNone" href="#"><i class="fa fa-remove"></i> Clear all</a></span></p>
78 <th>Fines & charges</th>
85 <th>Amount outstanding</th>
90 <td class="total" colspan="8">Total due:</td>
91 <td style="text-align: right;">[% total | $Price %]</td>
95 [% FOREACH account_grp IN accounts %]
96 [% FOREACH line IN account_grp.accountlines %]
99 [% IF ( line.amountoutstanding > 0 ) %]
100 <input class="cb" type="checkbox" checked="checked" name="incl_par_[% line.accountlines_id %]" />
104 [% IF ( line.amountoutstanding > 0 ) %]
105 <input type="submit" name="pay_indiv_[% line.accountlines_id %]" value="Pay" />
106 [% IF CAN_user_updatecharges_writeoff %]<input type="submit" name="wo_indiv_[% line.accountlines_id %]" value="Write off" />[% END %]
108 <input type="hidden" name="itemnumber[% line.accountlines_id %]" value="[% line.itemnumber %]" />
109 <input type="hidden" name="description[% line.accountlines_id %]" value="[% line.description %]" />
110 <input type="hidden" name="accounttype[% line.accountlines_id %]" value="[% line.accounttype %]" />
111 <input type="hidden" name="amount[% line.accountlines_id %]" value="[% line.amount %]" />
112 <input type="hidden" name="accountlines_id[% line.accountlines_id %]" value="[% line.accountlines_id %]" />
113 <input type="hidden" name="amountoutstanding[% line.accountlines_id %]" value="[% line.amountoutstanding %]" />
114 <input type="hidden" name="borrowernumber[% line.accountlines_id %]" value="[% line.borrowernumber %]" />
115 <input type="hidden" name="notify_id[% line.accountlines_id %]" value="[% line.notify_id %]" />
116 <input type="hidden" name="notify_level[% line.accountlines_id %]" value="[% line.notify_level %]" />
117 <input type="hidden" name="totals[% line.accountlines_id %]" value="[% line.totals %]" />
120 [% SWITCH line.accounttype %]
121 [% CASE 'Pay' %]Payment, thanks
122 [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
123 [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
124 [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
125 [% CASE 'N' %]New card
127 [% CASE 'A' %]Account management fee
129 [% CASE 'L' %]Lost item
130 [% CASE 'W' %]Writeoff
131 [% CASE 'FU' %]Accruing fine
132 [% CASE 'HE' %]Hold waiting too long
133 [% CASE 'Rent' %]Rental fee
134 [% CASE 'FOR' %]Forgiven
135 [% CASE 'LR' %]Lost item fee refund
136 [% CASE 'PF' %]Processing fee
137 [% CASE 'PAY' %]Payment
138 [% CASE 'WO' %]Writeoff
140 [% CASE 'CR' %]Credit
141 [% CASE %][% line.accounttype %]
143 [%- IF line.description %], [% line.description %][% END %]
144 [% IF line.title %]([% line.title %])[% END %]
146 <td><input type="text" name="payment_note_[% line.accountlines_id %]" /></td>
147 <td>[% line.accounttype %]</td>
148 <td>[% line.notify_id %]</td>
149 <td>[% line.notify_level %]</td>
150 <td class="debit" style="text-align: right;">[% line.amount | $Price %]</td>
151 <td class="debit" style="text-align: right;">[% line.amountoutstanding | $Price %]</td>
154 [% IF ( account_grp.total ) %]
157 <td class="total" colspan="8" style="text-align: right;">Sub total:</td>
158 <td style="text-align: right;">[% account_grp.total | $Price %]</td>
164 <fieldset class="action">
165 <input type="submit" id="paycollect" name="paycollect" value="Pay amount" class="submit" />
166 [% IF CAN_user_updatecharges_writeoff %]<input type="submit" name="woall" id="woall" value="Write off all" class="submit" />[% END %]
167 <input type="submit" id="payselected" name="payselected" value="Pay selected" class="submit" />
168 <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a>
172 <p>[% borrower.firstname %] [% borrower.surname %] has no outstanding fines.</p>
179 [% INCLUDE 'circ-menu.inc' %]
182 [% INCLUDE 'intranet-bottom.inc' %]