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