Smaller bug fixes [0000017]
[fa-stable.git] / manufacturing / work_order_issue.php
index 31269cfc753b56e52ffa0446e48a567e1cae7f1e..5d518e56d7525323efbce8591da523488c9984b6 100644 (file)
@@ -85,7 +85,7 @@ function can_process()
        }
 
        $failed_item = $_SESSION['issue_items']->check_qoh($_POST['Location'], $_POST['date_'], !$_POST['IssueType']);
-       if ($failed_item != null
+       if ($failed_item >= 0
        {
        display_error( _("The issue cannot be processed because an entered item would cause a negative inventory balance :") .
                " " . $failed_item->stock_id . " - " .  $failed_item->item_description);