Lines 78-83
Link Here
|
78 |
<input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" /> |
78 |
<input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" /> |
79 |
<input type="hidden" name="accountlines_id" id="accountlines_id" value="[% accountlines_id | html %]" /> |
79 |
<input type="hidden" name="accountlines_id" id="accountlines_id" value="[% accountlines_id | html %]" /> |
80 |
<input type="hidden" name="title" id="title" value="[% title | html %]" /> |
80 |
<input type="hidden" name="title" id="title" value="[% title | html %]" /> |
|
|
81 |
<input type="hidden" name="change_given" id="change_given" /> |
81 |
|
82 |
|
82 |
<fieldset class="rows"> |
83 |
<fieldset class="rows"> |
83 |
<legend>Pay an individual fine</legend> |
84 |
<legend>Pay an individual fine</legend> |
Lines 167-172
Link Here
|
167 |
<input type="hidden" name="payment_note" id="payment_note" value="[% payment_note | html %]" /> |
168 |
<input type="hidden" name="payment_note" id="payment_note" value="[% payment_note | html %]" /> |
168 |
<input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" /> |
169 |
<input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" /> |
169 |
<input type="hidden" name="confirm_writeoff" id="confirm_writeoff" value="1" /> |
170 |
<input type="hidden" name="confirm_writeoff" id="confirm_writeoff" value="1" /> |
|
|
171 |
<input type="hidden" name="change_given" id="change_given" /> |
170 |
<table> |
172 |
<table> |
171 |
<thead><tr> |
173 |
<thead><tr> |
172 |
<th>Description</th> |
174 |
<th>Description</th> |
Lines 209-214
Link Here
|
209 |
<input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts | html %]" /> |
211 |
<input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts | html %]" /> |
210 |
<input type="hidden" name="total" id="total" value="[% total | html %]" /> |
212 |
<input type="hidden" name="total" id="total" value="[% total | html %]" /> |
211 |
<input type="hidden" name="type" value="[% type | html %]" /> |
213 |
<input type="hidden" name="type" value="[% type | html %]" /> |
|
|
214 |
<input type="hidden" name="change_given" id="change_given" /> |
212 |
|
215 |
|
213 |
<fieldset class="rows"> |
216 |
<fieldset class="rows"> |
214 |
[% IF ( selected_accts ) %] |
217 |
[% IF ( selected_accts ) %] |
Lines 324-330
Link Here
|
324 |
<script> |
327 |
<script> |
325 |
$(document).ready(function() { |
328 |
$(document).ready(function() { |
326 |
[% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %] |
329 |
[% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %] |
327 |
window.open('/cgi-bin/koha/members/printfeercpt.pl?action=print&accountlines_id=[% payment_id | html %]&borrowernumber=[% patron.borrowernumber | html %]', '_blank'); |
330 |
window.open('/cgi-bin/koha/members/printfeercpt.pl?action=print&accountlines_id=[% payment_id | html %]&change_given=[% change_given | html %]&borrowernumber=[% patron.borrowernumber | html %]', '_blank'); |
328 |
[% END %] |
331 |
[% END %] |
329 |
|
332 |
|
330 |
var forms = $('#payindivfine, #payfine'); |
333 |
var forms = $('#payindivfine, #payfine'); |
Lines 431-440
Link Here
|
431 |
change.innerHTML = Math.round(($('#collected')[0].value - $('#paid')[0].value) * 100) / 100; |
434 |
change.innerHTML = Math.round(($('#collected')[0].value - $('#paid')[0].value) * 100) / 100; |
432 |
if (change.innerHTML <= 0) { |
435 |
if (change.innerHTML <= 0) { |
433 |
change.innerHTML = "0.00"; |
436 |
change.innerHTML = "0.00"; |
|
|
437 |
$('input[name="change_given"]').val('0.00'); |
434 |
} else { |
438 |
} else { |
435 |
change.value = change.innerHTML; |
439 |
change.value = change.innerHTML; |
436 |
moneyFormat(change); |
440 |
moneyFormat(change); |
437 |
change.innerHTML = change.value; |
441 |
change.innerHTML = change.value; |
|
|
442 |
$('input[name="change_given"]').val(change.value); |
438 |
} |
443 |
} |
439 |
|
444 |
|
440 |
$('#modal_change').html(change.innerHTML); |
445 |
$('#modal_change').html(change.innerHTML); |