Issuing stocks in advanced manufacturing caused errors reporting negative stock always.
[fa-stable.git] / manufacturing / work_order_issue.php
index 6aa7f3f22ea08b65ae71dafe3e85f49e49f6fc8d..7054f94a2f86cd2e12de80a1f3f96ff47968dd17 100644 (file)
@@ -99,7 +99,7 @@ function can_process()
        }
 
        $failed_item = $_SESSION['issue_items']->check_qoh($_POST['Location'], $_POST['date_'], !$_POST['IssueType']);
-       if ($failed_item != -1
+       if ($failed_item) 
        {
                display_error(_("The issue cannot be processed because it would cause negative inventory balance for marked items as of document date or later."));
                return false;