Common ui code for allocations moved toallocation_cart.inc
[fa-stable.git] / inventory / manage / item_codes.php
index 2e4b7272d1d2562f56ffb19980b8d6468cc00288..3ac092bbf17fe99800bc9419da6c63f28a4a4a6e 100644 (file)
@@ -1,4 +1,14 @@
 <?php
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
 $page_security = 11;
 $path_to_root="../..";
 include_once($path_to_root . "/includes/session.inc");
@@ -72,7 +82,7 @@ if ($Mode == 'Delete')
 {
        delete_item_code($selected_id);
        
-       display_notification(_("The purchasing data item has been sucessfully deleted."));
+       display_notification(_("Item code has been sucessfully deleted."));
        $Mode = 'RESET';
 }
 
@@ -87,7 +97,7 @@ if (list_updated('stock_id'))
 
 //--------------------------------------------------------------------------------------------------
 
-start_form(false, true);
+start_form();
 
 if (!isset($_POST['stock_id']))
        $_POST['stock_id'] = get_global_stock_item();
@@ -169,7 +179,7 @@ stock_categories_list_row(_("Category:"), 'category_id', null);
 
 end_table(1);
 
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
 
 end_form();
 end_page();