Lines 146-151
Link Here
|
146 |
<input type="hidden" name="payment_note" id="payment_note" value="[% payment_note | html %]" /> |
146 |
<input type="hidden" name="payment_note" id="payment_note" value="[% payment_note | html %]" /> |
147 |
<input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" /> |
147 |
<input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" /> |
148 |
<input type="hidden" name="confirm_writeoff" id="confirm_writeoff" value="1" /> |
148 |
<input type="hidden" name="confirm_writeoff" id="confirm_writeoff" value="1" /> |
|
|
149 |
<input type="hidden" name="change_given" id="change_given" /> |
149 |
<table> |
150 |
<table> |
150 |
<thead><tr> |
151 |
<thead><tr> |
151 |
<th>Description</th> |
152 |
<th>Description</th> |
Lines 183-188
Link Here
|
183 |
<input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts | html %]" /> |
184 |
<input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts | html %]" /> |
184 |
<input type="hidden" name="total" id="total" value="[% total | html %]" /> |
185 |
<input type="hidden" name="total" id="total" value="[% total | html %]" /> |
185 |
<input type="hidden" name="type" value="[% type | html %]" /> |
186 |
<input type="hidden" name="type" value="[% type | html %]" /> |
|
|
187 |
<input type="hidden" name="change_given" id="change_given" /> |
186 |
|
188 |
|
187 |
<fieldset class="rows"> |
189 |
<fieldset class="rows"> |
188 |
[% IF ( selected_accts ) %] |
190 |
[% IF ( selected_accts ) %] |
Lines 278-284
Link Here
|
278 |
<script> |
280 |
<script> |
279 |
$(document).ready(function() { |
281 |
$(document).ready(function() { |
280 |
[% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %] |
282 |
[% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %] |
281 |
window.open('/cgi-bin/koha/members/printfeercpt.pl?action=print&accountlines_id=[% payment_id | html %]&borrowernumber=[% patron.borrowernumber | html %]', '_blank'); |
283 |
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'); |
282 |
[% END %] |
284 |
[% END %] |
283 |
|
285 |
|
284 |
var forms = $('#payindivfine, #payfine'); |
286 |
var forms = $('#payindivfine, #payfine'); |
Lines 385-394
Link Here
|
385 |
change.innerHTML = Math.round(($('#collected')[0].value - $('#paid')[0].value) * 100) / 100; |
387 |
change.innerHTML = Math.round(($('#collected')[0].value - $('#paid')[0].value) * 100) / 100; |
386 |
if (change.innerHTML <= 0) { |
388 |
if (change.innerHTML <= 0) { |
387 |
change.innerHTML = "0.00"; |
389 |
change.innerHTML = "0.00"; |
|
|
390 |
$('input[name="change_given"]').val('0.00'); |
388 |
} else { |
391 |
} else { |
389 |
change.value = change.innerHTML; |
392 |
change.value = change.innerHTML; |
390 |
moneyFormat(change); |
393 |
moneyFormat(change); |
391 |
change.innerHTML = change.value; |
394 |
change.innerHTML = change.value; |
|
|
395 |
$('input[name="change_given"]').val(change.value); |
392 |
} |
396 |
} |
393 |
|
397 |
|
394 |
$('#modal_change').html(change.innerHTML); |
398 |
$('#modal_change').html(change.innerHTML); |