View | Details | Raw Unified | Return to bug 27290
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt (-15 / +8 lines)
Lines 112-118 Link Here
112
                        <ol>
112
                        <ol>
113
                            <li>
113
                            <li>
114
                                <label for="paid">Amount being paid: </label>
114
                                <label for="paid">Amount being paid: </label>
115
                                <input type="text" inputmode="numeric" pattern="[0-9]*" name="paid" id="paid" value="[% amountoutstanding | $Price on_editing => 1 %]" readonly/>
115
                                <input type="text" inputmode="none" pattern="[0-9]*" name="paid" id="paid" value="" readonly/>
116
                            </li>
116
                            </li>
117
                            <li>
117
                            <li>
118
                                <label for="collected" class="required">Amount tendered: </label>
118
                                <label for="collected" class="required">Amount tendered: </label>
Lines 372-382 Link Here
372
            $('#payForm').submit();
372
            $('#payForm').submit();
373
        });
373
        });
374
374
375
        $( "#payForm" ).validate({
375
        $('#payForm').validate({
376
            rules: {
376
            rules: {
377
                paid: { required: true },
377
                paid: {
378
                    required: true
379
                },
378
                collected: {
380
                collected: {
379
                    required: true
381
                    required: true
382
                },
383
                registerid: {
384
                    required: true
380
                }
385
                }
381
            }
386
            }
382
        });
387
        });
Lines 403-419 Link Here
403
            }
408
            }
404
        });
409
        });
405
410
406
        $('#payForm').validate({
407
            rules: {
408
                collected: {
409
                    required: true
410
                },
411
                registerid: {
412
                    required: true
413
                }
414
            }
415
        });
416
417
        [% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %]
411
        [% IF payment_id && Koha.Preference('FinePaymentAutoPopup') %]
418
            $("#printReceipt").click(function() {
412
            $("#printReceipt").click(function() {
419
                var win = window.open('/cgi-bin/koha/pos/printreceipt.pl?action=print&accountlines_id=[% payment_id | uri %]&collected=[% collected | uri %]&change=[% change | uri %]', '_blank');
413
                var win = window.open('/cgi-bin/koha/pos/printreceipt.pl?action=print&accountlines_id=[% payment_id | uri %]&collected=[% collected | uri %]&change=[% change | uri %]', '_blank');
420
- 

Return to bug 27290