|
Lines 128-134
Link Here
|
| 128 |
|
128 |
|
| 129 |
<li> |
129 |
<li> |
| 130 |
<label for="registerid">Cash register: </label> |
130 |
<label for="registerid">Cash register: </label> |
| 131 |
<select name="registerid" id="registerid" required="required"> |
131 |
<select name="registerid" id="registerid"> |
| 132 |
<option id="noregister" disabled selected="selected" value="">-- Select an option--</option> |
132 |
<option id="noregister" disabled selected="selected" value="">-- Select an option--</option> |
| 133 |
[% PROCESS options_for_registers %] |
133 |
[% PROCESS options_for_registers %] |
| 134 |
</select> |
134 |
</select> |
|
Lines 370-380
Link Here
|
| 370 |
$('#payForm').submit(); |
370 |
$('#payForm').submit(); |
| 371 |
}); |
371 |
}); |
| 372 |
|
372 |
|
| 373 |
$( "#payForm" ).validate({ |
373 |
$('#payForm').validate({ |
| 374 |
rules: { |
374 |
rules: { |
| 375 |
paid: { required: true }, |
375 |
paid: { |
|
|
376 |
required: true |
| 377 |
}, |
| 376 |
collected: { |
378 |
collected: { |
| 377 |
required: true |
379 |
required: true |
|
|
380 |
}, |
| 381 |
registerid: { |
| 382 |
required: true |
| 378 |
} |
383 |
} |
| 379 |
} |
384 |
} |
| 380 |
}); |
385 |
}); |
|
Lines 401-417
Link Here
|
| 401 |
} |
406 |
} |
| 402 |
}); |
407 |
}); |
| 403 |
|
408 |
|
| 404 |
$('#payForm').validate({ |
|
|
| 405 |
rules: { |
| 406 |
collected: { |
| 407 |
required: true |
| 408 |
}, |
| 409 |
registerid: { |
| 410 |
required: true |
| 411 |
} |
| 412 |
} |
| 413 |
}); |
| 414 |
|
| 415 |
[% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %] |
409 |
[% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %] |
| 416 |
$("#printReceipt").click(function() { |
410 |
$("#printReceipt").click(function() { |
| 417 |
var win = window.open('/cgi-bin/koha/pos/printreceipt.pl?action=print&accountlines_id=[% payment_id | uri %]&collected=[% collected | uri %]&change=[% change | uri %]', '_blank'); |
411 |
var win = window.open('/cgi-bin/koha/pos/printreceipt.pl?action=print&accountlines_id=[% payment_id | uri %]&collected=[% collected | uri %]&change=[% change | uri %]', '_blank'); |
| 418 |
- |
|
|