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-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=d6d3e66580df2f208cc5738af96a76a4b343d481;p=textcart.git Fixed check if code is not used during new sales kit creation. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 2aabc1f..2d31fe2 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 3e0492f..7887286 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."));