Issuing stocks in advanced manufacturing caused errors reporting negative stock always.
[fa-stable.git] / manufacturing / work_order_issue.php
index 071bf3c5856f0b1c865aa3685bec1ff3ca66bcf4..7054f94a2f86cd2e12de80a1f3f96ff47968dd17 100644 (file)
@@ -99,10 +99,9 @@ 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 an entered item would cause a negative inventory balance :") .
-               " " . $failed_item->stock_id . " - " .  $failed_item->item_description);
+               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;
        }
 
@@ -212,7 +211,7 @@ echo "<br>";
 
 start_form();
 
-start_table(TABLESTYLE, "width=90%", 10);
+start_table(TABLESTYLE, "width='90%'", 10);
 echo "<tr><td>";
 display_issue_items(_("Items to Issue"), $_SESSION['issue_items']);
 issue_options_controls();