From 6308abaf63ef43275af0b5300d39c03232e37d7a Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 21 Mar 2011 10:55:52 +0100 Subject: [PATCH] [0000641] Supplier Credit Give Error, [0000663] Work Order entry form does not show up 4 digit qty correctly while editing --- manufacturing/work_order_entry.php | 3 ++- purchasing/supplier_credit.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manufacturing/work_order_entry.php b/manufacturing/work_order_entry.php index aaba58d4..37bef207 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 7cea7021..038f5085 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); -- 2.30.2