X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fwork_order_entry.php;h=4aea96fb15d8f5d3b8378e08d0e706ad44ddb1d2;hb=7e6e0807990447d2977b970c3a0fd28dc9250194;hp=6a47ad5a1a8dc0b2182072b78268e188f64276c8;hpb=fc449c48a8d4ba23bfb18318dff08746340a440c;p=fa-stable.git diff --git a/manufacturing/work_order_entry.php b/manufacturing/work_order_entry.php index 6a47ad5a..4aea96fb 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'); @@ -316,9 +316,9 @@ $existing_comments = ""; $dec = 0; if (isset($selected_id)) { - $myrow = get_work_order($selected_id); + $myrow = get_work_order($selected_id, true); - if (strlen($myrow[0]) == 0) + if ($myrow === false) { echo _("The order number sent is not valid."); safe_exit();