Lines 243-304
Link Here
|
243 |
</div> <!-- /.row --> |
243 |
</div> <!-- /.row --> |
244 |
|
244 |
|
245 |
[% INCLUDE 'modals/issue_payout.inc' %] |
245 |
[% INCLUDE 'modals/issue_payout.inc' %] |
246 |
<!-- Issue refund modal --> |
246 |
[% INCLUDE 'modals/issue_refund.inc' %] |
247 |
<div class="modal" id="issueRefundModal" tabindex="-1" role="dialog" aria-labelledby="issueRefundLabel"> |
|
|
248 |
<form id="refund_form" action="/cgi-bin/koha/members/boraccount.pl" method="post" enctype="multipart/form-data" class="validated"> |
249 |
[% INCLUDE 'csrf-token.inc' %] |
250 |
<input type="hidden" name="accountlines_id" value="" id="refundline"> |
251 |
<input type="hidden" name="op" value="cud-refund"> |
252 |
<input type="hidden" name="borrowernumber" value="[% account.borrowernumber | html %]"> |
253 |
<div class="modal-dialog" role="document"> |
254 |
<div class="modal-content"> |
255 |
<div class="modal-header"> |
256 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
257 |
<h4 class="modal-title" id="issueRefundLabel">Issue refund</h4> |
258 |
</div> |
259 |
<div class="modal-body"> |
260 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) %] |
261 |
<div id="refund_error" class="dialog alert"> |
262 |
You must have at least one cash register associated with this branch before you can record cash refunds. |
263 |
</div> |
264 |
[% END %] |
265 |
<fieldset class="rows"> |
266 |
<ol> |
267 |
<li> |
268 |
<span id="item" class="label">Account: </span><span></span> |
269 |
</li> |
270 |
<li> |
271 |
<span id="paid" class="label">Amount paid: </span><span></span> |
272 |
</li> |
273 |
<li> |
274 |
<label class="required" for="amount">Returned to patron: </label> |
275 |
<input type="text" inputmode="numeric" pattern="[0-9]*" id="returned" name="amount" required="required"> |
276 |
<span class="required">Required</span> |
277 |
</li> |
278 |
|
279 |
[% INCLUDE 'transaction_types.inc' type="refund" %] |
280 |
|
281 |
[% IF Koha.Preference('UseCashRegisters') %] |
282 |
<li> |
283 |
<label for="registerid">Cash register: </label> |
284 |
<select name="registerid" id="refund_registerid"> |
285 |
<option id="noregister" disabled selected="selected" value="">-- Select an option--</option> |
286 |
[% PROCESS options_for_registers %] |
287 |
</select> |
288 |
</li> |
289 |
[% END %] |
290 |
|
291 |
</ol> |
292 |
</fieldset> <!-- /.rows --> |
293 |
</div> <!-- /.modal-body --> |
294 |
<div class="modal-footer"> |
295 |
<button type="submit" class="btn btn-default" id="borr_refund_confirm">Confirm</button> |
296 |
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
297 |
</div> <!-- /.modal-footer --> |
298 |
</div> <!-- /.modal-content --> |
299 |
</div> <!-- /.modal-dialog --> |
300 |
</form> <!-- /#refund_form --> |
301 |
</div> <!-- /#issueRefundModal --> |
302 |
|
247 |
|
303 |
<!-- Apply discount modal --> |
248 |
<!-- Apply discount modal --> |
304 |
<div class="modal" id="applyDiscountModal" tabindex="-1" role="dialog" aria-labelledby="applyDiscountLabel"> |
249 |
<div class="modal" id="applyDiscountModal" tabindex="-1" role="dialog" aria-labelledby="applyDiscountLabel"> |
305 |
- |
|
|