[0000641] Supplier Credit Give Error, [0000663] Work Order entry form does not show...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 21 Mar 2011 09:55:52 +0000 (10:55 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 21 Mar 2011 09:55:52 +0000 (10:55 +0100)
manufacturing/work_order_entry.php
purchasing/supplier_credit.php

index aaba58d4bca6b0979a59e1e9e3cc7641745e689d..37bef20763d131a9caaa99ca46fa0031bd160379 100644 (file)
@@ -351,7 +351,8 @@ if (isset($selected_id))
 
        $_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"];
index 7cea70211027571f904ec925e441338d0a999a41..038f50857d60e409647be029c6f4dbfb2ef23e15 100644 (file)
@@ -194,7 +194,7 @@ function check_data()
                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);