Fixed items_cart.check_qoh method (returned value, direct call to inventory checking...
[fa-stable.git] / manufacturing / work_order_issue.php
index a0b747e0630174587ce12098bccc36c610b66e45..dfe11060557d844b293b7003ffd3a7d1f4075d00 100644 (file)
@@ -100,7 +100,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;