From e79c80704f4d0bc3d3792365dfd7ebf32f9b4227 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Fri, 3 Apr 2015 19:25:35 +0200 Subject: [PATCH] Issuing stocks in advanced manufacturing caused errors reporting negative stock always. --- manufacturing/work_order_issue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2