Work Order Entry, Work Order Additional Costs: fixed input data checks.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 15 Dec 2017 18:14:49 +0000 (19:14 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 19 Dec 2017 12:17:40 +0000 (13:17 +0100)
manufacturing/work_order_costs.php
manufacturing/work_order_entry.php

index b52590f4a072094d6d3636a39e47acfd0ed29e22..bd262f81138d96901c7bd48d1bd360edb20fd219 100644 (file)
@@ -68,7 +68,7 @@ if (strlen($wo_details[0]) == 0)
 
 function can_process($wo_details)
 {
-       if (!check_num('costs', 0))
+       if (input_num('costs')<=0)
        {
                display_error(_("The amount entered is not a valid number or less then zero."));
                set_focus('costs');
index 6a47ad5a1a8dc0b2182072b78268e188f64276c8..aa13e8d5a145150765c775b812b617f918404179 100644 (file)
@@ -133,7 +133,7 @@ function can_process()
        }
        }
 
-       if (!check_num('quantity', 0))
+       if (!check_num('quantity', 1))
        {
                display_error( _("The quantity entered is invalid or less than zero."));
                set_focus('quantity');