Selecting the cancel button in confirming the voiding of document did not work properly.
[fa-stable.git] / inventory / includes / inventory_db.inc
index 2e22d692f9fa072998f81b83fc075df4475ec723..79fda1196e44bc13f6811f186c7fc8082ab0d8c7 100644 (file)
@@ -16,6 +16,7 @@ include_once($path_to_root . "/includes/manufacturing.inc");
 include_once($path_to_root . "/inventory/includes/db/items_category_db.inc");
 include_once($path_to_root . "/inventory/includes/db/items_trans_db.inc");
 include_once($path_to_root . "/inventory/includes/db/items_prices_db.inc");
+include_once($path_to_root . "/inventory/includes/db/items_purchases_db.inc");
 include_once($path_to_root . "/inventory/includes/db/items_codes_db.inc");
 include_once($path_to_root . "/inventory/includes/db/items_db.inc");
 include_once($path_to_root . "/inventory/includes/db/items_locations_db.inc");
@@ -24,4 +25,10 @@ include_once($path_to_root . "/inventory/includes/db/items_adjust_db.inc");
 include_once($path_to_root . "/inventory/includes/db/items_transfer_db.inc");
 include_once($path_to_root . "/inventory/includes/db/items_units_db.inc");
 
-?>
\ No newline at end of file
+function item_img_name($stock_id)
+{
+       $stock_id = strtr($stock_id, "><\\/:|*?", '________');
+       return clean_file_name($stock_id);
+}
+
+?>