$_POST['wo_ref'] = $myrow["wo_ref"];
$_POST['stock_id'] = $myrow["stock_id"];
- $_POST['quantity'] = qty_format($myrow["units_reqd"], $_POST['stock_id'], $dec);
+ //$_POST['quantity'] = qty_format($myrow["units_reqd"], $_POST['stock_id'], $dec);
+ $_POST['quantity'] = $myrow["units_reqd"];
$_POST['StockLocation'] = $myrow["loc_code"];
$_POST['released'] = $myrow["released"];
$_POST['closed'] = $myrow["closed"];
foreach ($_SESSION['supp_trans']->grn_items as $n => $item) {
if (is_inventory_item($item->item_code))
{
- $qoh = get_qoh_on_date($item->item_code, $item->location, $_SESSION['supp_trans']->tran_date);
+ $qoh = get_qoh_on_date($item->item_code, null, $_SESSION['supp_trans']->tran_date);
if ($item->qty_recd > $qoh)
{
$stock = get_item($item->item_code);