X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fdb%2Fitems_codes_db.inc;h=8d9442d41cc03f845f69489411ef93d2b8b95d01;hb=4f3183fb40d1107e2bffd0f18ebbca33965bb9e9;hp=5169e2d02348a28da83bdfd6311c14fdc9348cad;hpb=54d84ff9a67620ab38c676cdbcf87853632724f0;p=fa-stable.git diff --git a/inventory/includes/db/items_codes_db.inc b/inventory/includes/db/items_codes_db.inc index 5169e2d0..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)) { @@ -159,4 +159,3 @@ function get_where_used($item_code) AND item_code!=".db_escape($item_code); return db_query($sql, "where used query failed"); } -?> \ No newline at end of file