X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fdb%2Fitems_codes_db.inc;h=8d9442d41cc03f845f69489411ef93d2b8b95d01;hb=c82cbc67f22454e4afd30e53c40043b54a732be3;hp=5b29bf247420b08b51d829db1c22fb184ca2aa87;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/inventory/includes/db/items_codes_db.inc b/inventory/includes/db/items_codes_db.inc index 5b29bf24..8d9442d4 100644 --- a/inventory/includes/db/items_codes_db.inc +++ b/inventory/includes/db/items_codes_db.inc @@ -10,8 +10,8 @@ See the License here . ***********************************************************************/ /* - item_codes table is used to store both multiply foreign codes and - sale kits definition. + item_codes table is used to store both multiply foreign codes (aliases) and + sales kits definition. */ function update_item_code($id, $item_code, $stock_id, $description, $category, $qty, $foreign=0) { @@ -113,7 +113,7 @@ function get_item_code_dflts($stock_id) function check_item_in_kit($old_id, $kit_code, $item_code, $recurse=false) { $result = get_item_kit($kit_code); - if ($result != 0) + if ($result) { while ($myrow = db_fetch($result)) {