1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Patrons › Collect fine payment for [% borrower.firstname %] [% borrower.surname %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type= "text/javascript">
6 function moneyFormat(textObj) {
7 var newValue = textObj.value;
13 for(i=0; i < newValue.length; i++) {
14 aChar = newValue.substring(i, i+1);
15 if (aChar >= "0" && aChar <= "9") {
17 decAmount = "" + decAmount + aChar;
20 dolAmount = "" + dolAmount + aChar;
32 if (dolAmount == "") {
36 if (dolAmount.length > 1) {
37 while(dolAmount.length > 1 && dolAmount.substring(0,1) == "0") {
38 dolAmount = dolAmount.substring(1,dolAmount.length);
41 if (decAmount.length > 2) {
42 decAmount = decAmount.substring(0,2);
45 if (decAmount.length == 1) {
46 decAmount = decAmount + "0";
48 if (decAmount.length == 0) {
49 decAmount = decAmount + "00";
52 textObj.value = dolAmount + "." + decAmount;
57 <body id="pat_paycollect" class="pat">
58 [% INCLUDE 'header.inc' %]
59 [% INCLUDE 'patron-search.inc' %]
60 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Pay fines for [% borrower.firstname %] [% borrower.surname %]</a> › [% IF ( pay_individual ) %]Pay an individual fine[% ELSIF ( writeoff_individual ) %]Write off an individual fine[% ELSE %][% IF ( selected_accts ) %]Pay an amount toward selected fines[% ELSE %]Pay an amount toward all fines[% END %][% END %]</div>
62 <div id="doc3" class="yui-t2">
67 [% INCLUDE 'members-toolbar.inc' borrowernumber=borrower.borrowernumber %]
70 <!-- The manual invoice and credit buttons -->
72 <ul class="ui-tabs-nav">
74 <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Account</a>
76 <li class="ui-tabs-selected">
77 <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]" >Pay fines</a>
80 <a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrower.borrowernumber %]" >Create manual invoice</a>
83 <a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrower.borrowernumber %]" >Create manual credit</a>
86 <div class="tabs-container">
88 <div id="error_message" class="dialog alert">
93 [% IF ( pay_individual ) %]
94 <form name="payindivfine" onsubmit="return validatePayment(this);" method="post" action="/cgi-bin/koha/members/paycollect.pl">
95 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" />
96 <input type="hidden" name="pay_individual" id="pay_individual" value="[% pay_individual %]" />
97 <input type="hidden" name="itemnumber" id="itemnumber" value="[% itemnumber %]" />
98 <input type="hidden" name="description" id="description" value="[% description %]" />
99 <input type="hidden" name="accounttype" id="accounttype" value="[% accounttype %]" />
100 <input type="hidden" name="notify_id" id="notify_id" value="[% notify_id %]" />
101 <input type="hidden" name="notify_level" id="notify_level" value="[% notify_level %]" />
102 <input type="hidden" name="amount" id="amount" value="[% amount %]" />
103 <input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding %]" />
104 <input type="hidden" name="accountno" id="accountno" value="[% accountno %]" />
105 <input type="hidden" name="title" id="title" value="[% title %]" />
107 <fieldset class="rows">
108 <legend>Pay an individual fine</legend>
112 <th>Account type</th>
116 <th>Amount outstanding</th>
119 <td colspan="5">Total amount payable:</td><td>[% amountoutstanding | format('%.2f') %]</td>
123 [% description %] [% title %]
125 <td>[% accounttype %]</td>
126 <td>[% notify_id %]</td>
127 <td>[% notify_level %]</td>
128 <td class="debit">[% amount | format('%.2f') %]</td>
129 <td class="debit">[% amountoutstanding | format('%.2f') %]</td>
136 <label for="paid">Collect from patron: </label>
137 <!-- default to paying all -->
138 <input name="paid" id="paid" value="[% amountoutstanding | format('%.2f') %]" onchange="moneyFormat(document.payindivfine.paid)"/>
143 <div class="action"><input type="submit" name="submitbutton" value="Confirm" />
144 <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a></div>
146 [% ELSIF ( writeoff_individual ) %]
147 <form name="woindivfine" action="/cgi-bin/koha/members/pay.pl" method="post" >
148 <fieldset class="rows">
149 <legend>Write off an individual fine</legend>
150 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" />
151 <input type="hidden" name="pay_individual" id="pay_individual" value="[% pay_individual %]" />
152 <input type="hidden" name="itemnumber" id="itemnumber" value="[% itemnumber %]" />
153 <input type="hidden" name="description" id="description" value="[% description %]" />
154 <input type="hidden" name="accounttype" id="accounttype" value="[% accounttype %]" />
155 <input type="hidden" name="notify_id" id="notify_id" value="[% notify_id %]" />
156 <input type="hidden" name="notify_level" id="notify_level" value="[% notify_level %]" />
157 <input type="hidden" name="amount" id="amount" value="[% amount %]" />
158 <input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding %]" />
159 <input type="hidden" name="accountno" id="accountno" value="[% accountno %]" />
160 <input type="hidden" name="title" id="title" value="[% title %]" />
164 <th>Account type</th>
168 <th>Amount outstanding</th>
170 <tfoot><td colspan="5">Total amount to be written off:</td><td>[% amountoutstanding | format('%.2f') %]</td></tfoot>
172 <td>[% description %] [% title %]</td>
173 <td>[% accounttype %]</td>
174 <td>[% notify_id %]</td>
175 <td>[% notify_level %]</td>
176 <td class="debit">[% amount | format('%.2f') %]</td>
177 <td class="debit">[% amountoutstanding | format('%.2f') %]</td>
181 <div class="action"><input type="submit" name="confirm_writeoff" id="confirm_writeoff" value="Write off this charge" />
182 <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a></div>
186 <form name="payfine" onsubmit="return validatePayment(this);" method="post" action="/cgi-bin/koha/members/paycollect.pl">
187 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" />
188 <input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts %]" />
189 <input type="hidden" name="total" id="total" value="[% total %]" />
191 <fieldset class="rows">
192 [% IF ( selected_accts ) %]<legend>Pay an amount toward selected fines</legend>[% ELSE %]<legend>Pay an amount toward all fines</legend>[% END %]
195 <span class="label">Total amount outstanding: </span>
196 <span class="debit">[% total | format('%.2f') %]</span>
199 <label for="paid">Collect from patron: </label>
200 <!-- default to paying all -->
201 <input name="paid" id="paid" value="[% total | format('%.2f') %]" onchange="moneyFormat(document.payfine.paid)"/>
205 <div class="action"><input type="submit" name="submitbutton" value="Confirm" />
206 <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a></div>
214 [% INCLUDE 'circ-menu.tt' %]
217 [% INCLUDE 'intranet-bottom.inc' %]