Lines 99-109
Link Here
|
99 |
<ol> |
99 |
<ol> |
100 |
|
100 |
|
101 |
<li> |
101 |
<li> |
102 |
<label for="paid">Amount paid: </label> |
102 |
<label for="paid">Amount being paid: </label> |
103 |
<input name="paid" id="paid" value="[% amountoutstanding | $Price %]"/> |
103 |
<input name="paid" id="paid" value="[% amountoutstanding | $Price %]"/> |
104 |
</li> |
104 |
</li> |
105 |
<li> |
105 |
<li> |
106 |
<label for="collected">Collect from patron: </label> |
106 |
<label for="collected">Collected from patron: </label> |
107 |
<input id="collected" value="[% amountoutstanding | $Price %]"/> |
107 |
<input id="collected" value="[% amountoutstanding | $Price %]"/> |
108 |
</li> |
108 |
</li> |
109 |
<li> |
109 |
<li> |
Lines 125-132
Link Here
|
125 |
</ol> |
125 |
</ol> |
126 |
</fieldset> |
126 |
</fieldset> |
127 |
|
127 |
|
128 |
<div class="action"><input type="submit" name="submitbutton" value="Confirm" /> |
128 |
<div class="action"> |
129 |
<a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a></div> |
129 |
<input type="submit" name="submitbutton" value="Confirm" /> |
|
|
130 |
<a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a> |
131 |
</div> |
130 |
</form> |
132 |
</form> |
131 |
[% ELSIF ( writeoff_individual ) %] |
133 |
[% ELSIF ( writeoff_individual ) %] |
132 |
<form name="woindivfine" id="woindivfine" action="/cgi-bin/koha/members/pay.pl" method="post" > |
134 |
<form name="woindivfine" id="woindivfine" action="/cgi-bin/koha/members/pay.pl" method="post" > |
Lines 251-267
Link Here
|
251 |
</div> <!-- /.row --> |
253 |
</div> <!-- /.row --> |
252 |
|
254 |
|
253 |
<!-- Modal --> |
255 |
<!-- Modal --> |
254 |
<a class="hidden" href="#confirm_change_form" data-toggle="modal"></a> |
|
|
255 |
<div id="confirm_change_form" class="modal" tabindex="-1" role="dialog" aria-hidden="true"> |
256 |
<div id="confirm_change_form" class="modal" tabindex="-1" role="dialog" aria-hidden="true"> |
256 |
<div class="modal-dialog"> |
257 |
<div class="modal-dialog"> |
257 |
<div class="modal-content"> |
258 |
<div class="modal-content"> |
258 |
<div class="modal-header"> |
259 |
<div class="modal-header"> |
259 |
<h3>Amount collected higher than paid</h3> |
260 |
<h3>The amount collected is more than the outstanding charge</h3> |
260 |
</div> |
261 |
</div> |
261 |
<div class="modal-body"> |
262 |
<div class="modal-body"> |
262 |
<p>The amount collected from the patron is higher than the amount paid.</p> |
263 |
<p>The amount collected from the patron is higher than the amount to be paid.</p> |
263 |
<p>The change to give is <b><span id="modal_change">0.00</span></b>.</p> |
264 |
<p>The change to give is <b><span id="modal_change">0.00</span></b>.</p> |
264 |
<p>Do you still confirm the payment?</p> |
265 |
<p>Confirm this payment?</p> |
265 |
</div> |
266 |
</div> |
266 |
<div class="modal-footer"> |
267 |
<div class="modal-footer"> |
267 |
<button class="btn btn-default approve" id="modal_submit" type="button"><i class="fa fa-check"></i> Yes</button> |
268 |
<button class="btn btn-default approve" id="modal_submit" type="button"><i class="fa fa-check"></i> Yes</button> |
Lines 288-301
Link Here
|
288 |
}); |
289 |
}); |
289 |
|
290 |
|
290 |
if (change != undefined) { |
291 |
if (change != undefined) { |
291 |
forms.bind('submit', function(e) { |
292 |
forms.on("submit", function(e) { |
292 |
if (change.innerHTML > 0.00) { |
293 |
if (change.innerHTML > 0.00) { |
293 |
e.preventDefault(); |
294 |
e.preventDefault(); |
294 |
$('a[href="#confirm_change_form"]').click(); |
295 |
$("#confirm_change_form").modal("show"); |
|
|
296 |
} else { |
297 |
return true; |
295 |
} |
298 |
} |
296 |
}); |
299 |
}); |
297 |
} |
300 |
} |
298 |
|
301 |
|
|
|
302 |
$("#confirm_change_form").on("hidden.bs.modal", function(){ |
303 |
// remove class added by preventDoubleFormSubmit if necessary |
304 |
$("body, form input[type='submit'], form button[type='submit'], form a").removeClass('waiting'); |
305 |
}); |
306 |
|
299 |
$('#modal_submit').click(function() { |
307 |
$('#modal_submit').click(function() { |
300 |
forms[0].submit(); |
308 |
forms[0].submit(); |
301 |
}); |
309 |
}); |
302 |
- |
|
|