From: Janusz Dobrowolski Date: Mon, 14 Jul 2008 20:00:46 +0000 (+0000) Subject: Smaller bug fixes [0000017] X-Git-Tag: v2.4.2~19^2~1913 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=e9d08fae16b010fcadc8f29d6d491a0d0ea37a90;p=fa-stable.git Smaller bug fixes [0000017] --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a4d44032..527d5768 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,13 @@ Legend: ! -> Note $ -> Affected files +14-Jul-2008 Janusz Dobrowolski +# Fixed bug [0000017] - error while checking qoh +$ /includes/ui/items_cart.inc + /manufacturing/work_order_issue.php +# Fixed ajax update +$ /gl/manage/gl_accounts.php + 13-Jul-2008 Joe Hunt + Added GL Summary of Tax Report (rep709.php). Usable only if different Tax Accounts are used. $ /reporting/rep709.php diff --git a/includes/ui/items_cart.inc b/includes/ui/items_cart.inc index fb2ac021..a2d3e2d2 100644 --- a/includes/ui/items_cart.inc +++ b/includes/ui/items_cart.inc @@ -83,6 +83,7 @@ class items_cart if ($item_ret != null) return $line_no; } + return -1; } // ----------- GL item functions diff --git a/manufacturing/work_order_issue.php b/manufacturing/work_order_issue.php index 31269cfc..5d518e56 100644 --- a/manufacturing/work_order_issue.php +++ b/manufacturing/work_order_issue.php @@ -85,7 +85,7 @@ function can_process() } $failed_item = $_SESSION['issue_items']->check_qoh($_POST['Location'], $_POST['date_'], !$_POST['IssueType']); - if ($failed_item != null) + if ($failed_item >= 0) { 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);