From: Joe Hunt Date: Mon, 21 Mar 2011 09:55:52 +0000 (+0100) Subject: [0000641] Supplier Credit Give Error, [0000663] Work Order entry form does not show... X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=78d33138df776388f792e706b9ce7df2a01b91f8;p=textcart.git [0000641] Supplier Credit Give Error, [0000663] Work Order entry form does not show up 4 digit qty correctly while editing --- diff --git a/manufacturing/work_order_entry.php b/manufacturing/work_order_entry.php index aaba58d..37bef20 100644 --- a/manufacturing/work_order_entry.php +++ b/manufacturing/work_order_entry.php @@ -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"]; diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php index 7cea702..038f508 100644 --- a/purchasing/supplier_credit.php +++ b/purchasing/supplier_credit.php @@ -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);