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

(-)a/admin/transport-cost-matrix.pl (-1 / +1 lines)
Lines 82-88 foreach my $branchfrom ( @branchloop ) { Link Here
82
                $from_to_input_def{disabled} = 1;
82
                $from_to_input_def{disabled} = 1;
83
            }
83
            }
84
            else {
84
            else {
85
                push @errors, "Invalid value for $from_row{name} -> $from_to_input_def{name}"
85
                push @errors, "$from_row{name} -> $from_to_input_def{name}"
86
                  unless $value =~ /\d/o && $value >= 0.0;
86
                  unless $value =~ /\d/o && $value >= 0.0;
87
            }
87
            }
88
        }
88
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/transport-cost-matrix.tt (-3 / +2 lines)
Lines 9-15 function check_transport_cost(e) { Link Here
9
    if (val && val != '' && !isNaN(parseFloat(val)) && val >= 0.0) {
9
    if (val && val != '' && !isNaN(parseFloat(val)) && val >= 0.0) {
10
        return;
10
        return;
11
    }
11
    }
12
    alert("Cost must be expressed as a decimal number >= 0");
12
    alert(_("Cost must be expressed as a decimal number >= 0"));
13
}
13
}
14
function disable_transport_cost_chg(e, cost_id) {
14
function disable_transport_cost_chg(e, cost_id) {
15
    disable_transport_cost(cost_id, e.checked);
15
    disable_transport_cost(cost_id, e.checked);
Lines 69-75 function form_submit (f) { Link Here
69
        <h4>There were problems with your submission</h4>
69
        <h4>There were problems with your submission</h4>
70
        <ul>
70
        <ul>
71
            [% FOR e IN errors %]
71
            [% FOR e IN errors %]
72
                <li>[% e %]</li>
72
                <li>Invalid value for [% e %]</li>
73
            [% END %]
73
            [% END %]
74
        </ul>
74
        </ul>
75
    </div>[% END %]
75
    </div>[% END %]
76
- 

Return to bug 8938