unset ($_SESSION['issue_items']);
}
- Session_register("issue_items");
-
$_SESSION['issue_items'] = new items_cart(ST_MANUISSUE);
$_SESSION['issue_items']->order_id = $_GET['trans_no'];
}
$failed_item = $_SESSION['issue_items']->check_qoh($_POST['Location'], $_POST['date_'], !$_POST['IssueType']);
if ($failed_item != -1)
{
- 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;
}
function check_item_data()
{
- if (!check_num('qty', 0))
+ if (input_num('qty') == 0 || !check_num('qty', 0))
{
display_error(_("The quantity entered is negative or invalid."));
set_focus('qty');