1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Patrons › Pay Fines for [% borrower.firstname %] [% borrower.surname %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type= "text/javascript">
6 $(document).ready(function(){
7 $("#woall").click(function(event){
8 var answer = confirm(_("Are you sure you want to write off [% total | format('%.2f') %] in outstanding fines? This cannot be undone!"));
10 event.preventDefault();
17 <body id="pat_pay" class="pat">
18 [% INCLUDE 'header.inc' %]
19 [% INCLUDE 'patron-search.inc' %]
21 <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>
23 <div id="doc3" class="yui-t2">
28 [% INCLUDE 'members-toolbar.inc' borrowernumber=borrower.borrowernumber %]
30 <!-- The manual invoice and credit buttons -->
31 <div class="statictabs">
33 <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Account</a></li>
34 <li class="active"><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]" >Pay fines</a></li>
35 <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrower.borrowernumber %]" >Create manual invoice</a></li>
36 <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrower.borrowernumber %]" >Create manual credit</a></li>
38 <div class="tabs-container">
41 <form action="/cgi-bin/koha/members/pay.pl" method="post">
42 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" />
47 <th>Fines & charges</th>
54 <th>Amount outstanding</th>
59 <td class="total" colspan="7">Total Due:</td>
60 <td>[% total | format('%.2f') %]</td>
64 [% FOREACH account_grp IN accounts %]
65 [% FOREACH line IN account_grp.accountlines %]
68 [% IF ( line.amountoutstanding > 0 ) %]
69 <input type="submit" name="pay_indiv_[% line.accountno %]" value="Pay" />
70 <input type="submit" name="wo_indiv_[% line.accountno %]" value="Write off" />
72 <input type="hidden" name="itemnumber[% line.accountno %]" value="[% line.itemnumber %]" />
73 <input type="hidden" name="description[% line.accountno %]" value="[% line.description %]" />
74 <input type="hidden" name="accounttype[% line.accountno %]" value="[% line.accounttype %]" />
75 <input type="hidden" name="amount[% line.accountno %]" value="[% line.amount %]" />
76 <input type="hidden" name="amountoutstanding[% line.accountno %]" value="[% line.amountoutstanding %]" />
77 <input type="hidden" name="borrowernumber[% line.accountno %]" value="[% line.borrowernumber %]" />
78 <input type="hidden" name="accountno[% line.accountno %]" value="[% line.accountno %]" />
79 <input type="hidden" name="notify_id[% line.accountno %]" value="[% line.notify_id %]" />
80 <input type="hidden" name="notify_level[% line.accountno %]" value="[% line.notify_level %]" />
81 <input type="hidden" name="totals[% line.accountno %]" value="[% line.totals %]" />
84 [% IF ( line.amountoutstanding > 0 ) %]
85 <input type="checkbox" checked="checked" name="incl_par_[% line.accountno %]" />
88 <td>[% line.description %] ([% line.title |html_entity %])</td>
89 <td>[% line.accounttype %]</td>
90 <td>[% line.notify_id %]</td>
91 <td>[% line.notify_level %]</td>
92 <td class="debit">[% line.amount | format('%.2f') %]</td>
93 <td class="debit">[% line.amountoutstanding | format('%.2f') %]</td>
96 [% IF ( account_grp.total ) %]
99 <td class="total" colspan="7">Sub total:</td>
100 <td>[% account_grp.total | format('%.2f') %]</td>
106 <fieldset class="action">
107 <input type="submit" name="paycollect" value="Pay amount" class="submit" />
108 <input type="submit" name="woall" id="woall" value="Write off all" class="submit" />
109 <input type="submit" name="payselected" value="Pay selected" class="submit" />
110 <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a>
114 <p>[% borrower.firstname %] [% borrower.surname %] has no outstanding fines.</p>
122 [% INCLUDE 'circ-menu.tt' %]
125 [% INCLUDE 'intranet-bottom.inc' %]