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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/validator-strings.inc (+1 lines)
Lines 12-17 Link Here
12
            digits: _("Please enter only digits."),
12
            digits: _("Please enter only digits."),
13
            equalTo: _("Please enter the same value again."),
13
            equalTo: _("Please enter the same value again."),
14
            number: _("Please add amount in valid format: 0.00"),
14
            number: _("Please add amount in valid format: 0.00"),
15
            decimal_rate: $.validator.addMethod("decimal_rate", $.validator.methods.number, "Please add rate in valid format: 0.00"),
15
            maxlength: $.validator.format(_("Please enter no more than {0} characters.")),
16
            maxlength: $.validator.format(_("Please enter no more than {0} characters.")),
16
            minlength: $.validator.format(_("Please enter at least {0} characters.")),
17
            minlength: $.validator.format(_("Please enter at least {0} characters.")),
17
            rangelength: $.validator.format(_("Please enter a value between {0} and {1} characters long.")),
18
            rangelength: $.validator.format(_("Please enter a value between {0} and {1} characters long.")),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt (-1 / +1 lines)
Lines 358-364 Link Here
358
                <input type="hidden" name="tax_rate" value="0" />
358
                <input type="hidden" name="tax_rate" value="0" />
359
            [% END %]
359
            [% END %]
360
            <li><label for="discount">Discount: </label>
360
            <li><label for="discount">Discount: </label>
361
                <input type="text" size="6" id="discount" name="discount" value="[% discount | format ('%.1f') %]" />%</li>
361
                <input class="rate" type="text" size="6" id="discount" name="discount" value="[% discount | format ('%.1f') %]" />%</li>
362
            <li>
362
            <li>
363
                <label for="deliverytime">Delivery time: </label>
363
                <label for="deliverytime">Delivery time: </label>
364
                <input type="text" size="2" id="deliverytime" name="deliverytime" value="[% deliverytime | html %]" /> days
364
                <input type="text" size="2" id="deliverytime" name="deliverytime" value="[% deliverytime | html %]" /> days
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-1 / +4 lines)
Lines 138-143 $(document).ready(function () { Link Here
138
        number: true,
138
        number: true,
139
    });
139
    });
140
140
141
    jQuery.validator.addClassRules("rate", {
142
        decimal_rate: true
143
    });
144
141
    $("#logout").on("click", function () {
145
    $("#logout").on("click", function () {
142
        logOut();
146
        logOut();
143
    });
147
    });
144
- 

Return to bug 35087