Lines 72-77
Link Here
|
72 |
<input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" /> |
72 |
<input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" /> |
73 |
<input type="hidden" name="accountlines_id" id="accountlines_id" value="[% accountlines_id | html %]" /> |
73 |
<input type="hidden" name="accountlines_id" id="accountlines_id" value="[% accountlines_id | html %]" /> |
74 |
<input type="hidden" name="title" id="title" value="[% title | html %]" /> |
74 |
<input type="hidden" name="title" id="title" value="[% title | html %]" /> |
|
|
75 |
<input type="hidden" name="change_given" id="change_given" /> |
75 |
|
76 |
|
76 |
<fieldset class="rows"> |
77 |
<fieldset class="rows"> |
77 |
<legend>Pay an individual fine</legend> |
78 |
<legend>Pay an individual fine</legend> |
Lines 146-151
Link Here
|
146 |
<input type="hidden" name="payment_note" id="payment_note" value="[% payment_note | html %]" /> |
147 |
<input type="hidden" name="payment_note" id="payment_note" value="[% payment_note | html %]" /> |
147 |
<input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" /> |
148 |
<input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" /> |
148 |
<input type="hidden" name="confirm_writeoff" id="confirm_writeoff" value="1" /> |
149 |
<input type="hidden" name="confirm_writeoff" id="confirm_writeoff" value="1" /> |
|
|
150 |
<input type="hidden" name="change_given" id="change_given" /> |
149 |
<table> |
151 |
<table> |
150 |
<thead><tr> |
152 |
<thead><tr> |
151 |
<th>Description</th> |
153 |
<th>Description</th> |
Lines 183-188
Link Here
|
183 |
<input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts | html %]" /> |
185 |
<input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts | html %]" /> |
184 |
<input type="hidden" name="total" id="total" value="[% total | html %]" /> |
186 |
<input type="hidden" name="total" id="total" value="[% total | html %]" /> |
185 |
<input type="hidden" name="type" value="[% type | html %]" /> |
187 |
<input type="hidden" name="type" value="[% type | html %]" /> |
|
|
188 |
<input type="hidden" name="change_given" id="change_given" /> |
186 |
|
189 |
|
187 |
<fieldset class="rows"> |
190 |
<fieldset class="rows"> |
188 |
[% IF ( selected_accts ) %] |
191 |
[% IF ( selected_accts ) %] |
Lines 278-284
Link Here
|
278 |
<script> |
281 |
<script> |
279 |
$(document).ready(function() { |
282 |
$(document).ready(function() { |
280 |
[% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %] |
283 |
[% 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'); |
284 |
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 %] |
285 |
[% END %] |
283 |
|
286 |
|
284 |
var forms = $('#payindivfine, #payfine'); |
287 |
var forms = $('#payindivfine, #payfine'); |
Lines 385-394
Link Here
|
385 |
change.innerHTML = Math.round(($('#collected')[0].value - $('#paid')[0].value) * 100) / 100; |
388 |
change.innerHTML = Math.round(($('#collected')[0].value - $('#paid')[0].value) * 100) / 100; |
386 |
if (change.innerHTML <= 0) { |
389 |
if (change.innerHTML <= 0) { |
387 |
change.innerHTML = "0.00"; |
390 |
change.innerHTML = "0.00"; |
|
|
391 |
$('input[name="change_given"]').val('0.00'); |
388 |
} else { |
392 |
} else { |
389 |
change.value = change.innerHTML; |
393 |
change.value = change.innerHTML; |
390 |
moneyFormat(change); |
394 |
moneyFormat(change); |
391 |
change.innerHTML = change.value; |
395 |
change.innerHTML = change.value; |
|
|
396 |
$('input[name="change_given"]').val(change.value); |
392 |
} |
397 |
} |
393 |
|
398 |
|
394 |
$('#modal_change').html(change.innerHTML); |
399 |
$('#modal_change').html(change.innerHTML); |