From: Janusz Dobrowolski Date: Tue, 5 May 2009 19:58:15 +0000 (+0000) Subject: Fixed check if code is not used during new sales kit creation. X-Git-Tag: 2.3-final~1268 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=992a194b4aa21818364f4c5f577a33f9bd8e68c9;p=fa-stable.git Fixed check if code is not used during new sales kit creation. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 2aabc1fc..2d31fe2f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +05-May-2009 Janusz Dobrowolski +# Fixed check if code for new sales kit is not used. +$ /inventory/manage/sales_kits.php + 04-May-2009 Joe Hunt # Purchase Order document shows wrong purch data conversion if purch data $ /reporting/rep209.php diff --git a/inventory/manage/sales_kits.php b/inventory/manage/sales_kits.php index 3e0492fa..78872860 100644 --- a/inventory/manage/sales_kits.php +++ b/inventory/manage/sales_kits.php @@ -84,7 +84,7 @@ function update_component($kit_code, $selected_item) elseif ($selected_item == -1) // adding new item or new alias/kit { if (get_post('item_code') == '') { // New kit/alias definition - $kit = get_item_kit($_POST['item_code']); + $kit = get_item_kit($_POST['kit_code']); if (db_num_rows($kit)) { $input_error = 1; display_error( _("This item code is already assigned to stock item or sale kit."));