|
Lines 6-16
Link Here
|
| 6 |
//<![CDATA[ |
6 |
//<![CDATA[ |
| 7 |
$(document).ready(function() { |
7 |
$(document).ready(function() { |
| 8 |
$('#payindivfine, #woindivfine, #payfine').preventDoubleFormSubmit(); |
8 |
$('#payindivfine, #woindivfine, #payfine').preventDoubleFormSubmit(); |
|
|
9 |
$("#paid").on("change",function(){ |
| 10 |
moneyFormat( this ); |
| 11 |
}); |
| 9 |
}); |
12 |
}); |
| 10 |
//]]> |
13 |
|
| 11 |
</script> |
|
|
| 12 |
<script type= "text/javascript"> |
| 13 |
//<![CDATA[ |
| 14 |
function moneyFormat(textObj) { |
14 |
function moneyFormat(textObj) { |
| 15 |
var newValue = textObj.value; |
15 |
var newValue = textObj.value; |
| 16 |
var decAmount = ""; |
16 |
var decAmount = ""; |
|
Lines 99-105
function moneyFormat(textObj) {
Link Here
|
| 99 |
[% END %] |
99 |
[% END %] |
| 100 |
|
100 |
|
| 101 |
[% IF ( pay_individual ) %] |
101 |
[% IF ( pay_individual ) %] |
| 102 |
<form name="payindivfine" id="payindivfine" onsubmit="return validatePayment(this);" method="post" action="/cgi-bin/koha/members/paycollect.pl"> |
102 |
<form name="payindivfine" id="payindivfine" method="post" action="/cgi-bin/koha/members/paycollect.pl"> |
| 103 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" /> |
103 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" /> |
| 104 |
<input type="hidden" name="pay_individual" id="pay_individual" value="[% pay_individual %]" /> |
104 |
<input type="hidden" name="pay_individual" id="pay_individual" value="[% pay_individual %]" /> |
| 105 |
<input type="hidden" name="itemnumber" id="itemnumber" value="[% itemnumber %]" /> |
105 |
<input type="hidden" name="itemnumber" id="itemnumber" value="[% itemnumber %]" /> |
|
Lines 145-151
function moneyFormat(textObj) {
Link Here
|
| 145 |
<li> |
145 |
<li> |
| 146 |
<label for="paid">Collect from patron: </label> |
146 |
<label for="paid">Collect from patron: </label> |
| 147 |
<!-- default to paying all --> |
147 |
<!-- default to paying all --> |
| 148 |
<input name="paid" id="paid" value="[% amountoutstanding | format('%.2f') %]" onchange="moneyFormat(document.payindivfine.paid)"/> |
148 |
<input name="paid" id="paid" value="[% amountoutstanding | format('%.2f') %]" /> |
| 149 |
</li> |
149 |
</li> |
| 150 |
</ol> |
150 |
</ol> |
| 151 |
</fieldset> |
151 |
</fieldset> |
|
Lines 195-201
function moneyFormat(textObj) {
Link Here
|
| 195 |
</form> |
195 |
</form> |
| 196 |
[% ELSE %] |
196 |
[% ELSE %] |
| 197 |
|
197 |
|
| 198 |
<form name="payfine" id="payfine" onsubmit="return validatePayment(this);" method="post" action="/cgi-bin/koha/members/paycollect.pl"> |
198 |
<form name="payfine" id="payfine" method="post" action="/cgi-bin/koha/members/paycollect.pl"> |
| 199 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" /> |
199 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" /> |
| 200 |
<input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts %]" /> |
200 |
<input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts %]" /> |
| 201 |
<input type="hidden" name="total" id="total" value="[% total %]" /> |
201 |
<input type="hidden" name="total" id="total" value="[% total %]" /> |
|
Lines 210-216
function moneyFormat(textObj) {
Link Here
|
| 210 |
<li> |
210 |
<li> |
| 211 |
<label for="paid">Collect from patron: </label> |
211 |
<label for="paid">Collect from patron: </label> |
| 212 |
<!-- default to paying all --> |
212 |
<!-- default to paying all --> |
| 213 |
<input name="paid" id="paid" value="[% total | format('%.2f') %]" onchange="moneyFormat(document.payfine.paid)"/> |
213 |
<input name="paid" id="paid" value="[% total | format('%.2f') %]" /> |
| 214 |
</li> |
214 |
</li> |
| 215 |
<li> |
215 |
<li> |
| 216 |
<label for="selected_accts_notes">Note: </label> |
216 |
<label for="selected_accts_notes">Note: </label> |