X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fwork_order_issue.php;h=7054f94a2f86cd2e12de80a1f3f96ff47968dd17;hb=c85c10b86be48b2b1df728f4751adbb38f2ac8d4;hp=6aa7f3f22ea08b65ae71dafe3e85f49e49f6fc8d;hpb=fc24ee893402902fc58632dabb5d7c2594e191d0;p=fa-stable.git diff --git a/manufacturing/work_order_issue.php b/manufacturing/work_order_issue.php index 6aa7f3f2..7054f94a 100644 --- a/manufacturing/work_order_issue.php +++ b/manufacturing/work_order_issue.php @@ -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;