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;
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> › Pay Fines for [% borrower.firstname %] [% borrower.surname %]</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 %]" />
109 <th>Account Type</th>
113 <th>Amount Outstanding</th>
117 [% description %] [% title %]
119 <td>[% accounttype %]</td>
120 <td>[% notify_id %]</td>
121 <td>[% notify_level %]</td>
122 <td class="debit">[% amount | format('%.2f') %]</td>
123 <td class="debit">[% amountoutstanding | format('%.2f') %]</td>
126 <td>Total Amount Payable : </td>
127 <td>[% amountoutstanding | format('%.2f') %]</td>
128 <td colspan="4"></td>
130 <tr><td colspan="6"> </td></tr>
132 <td>Collect From Patron: </td>
134 <!-- default to paying all -->
135 <input name="paid" id="paid" value="[% amountoutstanding | format('%.2f') %]" onchange="moneyFormat(document.payindivfine.paid)"/>
138 <tr><td colspan="6"></td></tr>
141 <input type="submit" name="submitbutton" value="Confirm" />
142 <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a>
148 [% ELSIF ( writeoff_individual ) %]
149 <form name="woindivfine" action="/cgi-bin/koha/members/pay.pl" method="post" >
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>
171 <td>[% description %] [% title %]</td>
172 <td>[% accounttype %]</td>
173 <td>[% notify_id %]</td>
174 <td>[% notify_level %]</td>
175 <td class="debit">[% amount | format('%.2f') %]</td>
176 <td class="debit">[% amountoutstanding | format('%.2f') %]</td>
178 <tr><td colspan="6"> </td></tr>
179 <tr><td colspan="6"><strong>Writeoff This Charge?</strong></td></tr>
183 <input type="submit" name="confirm_writeoff" id="confirm_writeoff" value="Confirm" />
184 <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a>
192 <form name="payfine" onsubmit="return validatePayment(this);" method="post" action="/cgi-bin/koha/members/paycollect.pl">
193 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" />
194 <input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts %]" />
195 <input type="hidden" name="total" id="total" value="[% total %]" />
199 <td>Total Amount Outstanding : </td>
200 <td class="debit">[% total | format('%.2f') %]</td>
202 <tr><td colspan="2"> </td></tr>
204 <td>Collect From Patron: </td>
206 <!-- default to paying all -->
207 <input name="paid" id="paid" value="[% total | format('%.2f') %]" onchange="moneyFormat(document.payfine.paid)"/>
213 <input type="submit" name="submitbutton" value="Confirm" />
214 <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a>
225 [% INCLUDE 'circ-menu.tt' %]
228 [% INCLUDE 'intranet-bottom.inc' %]