! -> Note
$ -> Affected files
+22-Dec-2008 Janusz Dobrowolski
+# Fixed item_code database update on item creation.
+$ /inventory/includes/db/item_codes_db.inc
+ /inventory/includes/db/items_db.inc
+
21-Dec-2008 Joe Hunt
# Minor bugs in layout and quick entries.
$ /Includes/ui/ui_view.inc
WHERE ";
if ($id == -1) // update with unknown $id i.e. from items table editor
- "item_code = ".db_escape($item_code)
+ $sqk .= "item_code = ".db_escape($item_code)
." AND stock_id = ".db_escape($stock_id);
else
$sql .= "id = $id";
db_query($sql, "The item could not be updated");
- update_item_code(-1, $stock_id, $stock_id, $description, 1, 0);
+ update_item_code(-1, $stock_id, $stock_id, $description, $category_id, 1, 0);
}
function add_item($stock_id, $description, $long_description, $category_id, $tax_type_id, $units, $mb_flag,
db_query($sql, "The item locstock could not be added");
- add_item_code($stock_id, $stock_id, $description, 1, 0);
+ add_item_code($stock_id, $stock_id, $description, $category_id, 1, 0);
}
function delete_item($stock_id)