From: Janusz Dobrowolski Date: Fri, 15 Dec 2017 18:14:49 +0000 (+0100) Subject: Work Order Entry, Work Order Additional Costs: fixed input data checks. X-Git-Tag: v2.4.4~38 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=baf08ffb019ab3d04264b2876a1c0f3e32365c29;p=fa-stable.git Work Order Entry, Work Order Additional Costs: fixed input data checks. --- diff --git a/manufacturing/work_order_costs.php b/manufacturing/work_order_costs.php index b52590f4..bd262f81 100644 --- a/manufacturing/work_order_costs.php +++ b/manufacturing/work_order_costs.php @@ -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'); diff --git a/manufacturing/work_order_entry.php b/manufacturing/work_order_entry.php index 6a47ad5a..aa13e8d5 100644 --- a/manufacturing/work_order_entry.php +++ b/manufacturing/work_order_entry.php @@ -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');