[0004216] Print Work Orders: database error fixed when voided WO is in selected range.
[fa-stable.git] / applications / inventory.php
index c92e5d1bc9c34ba8bc029c0eb1a8ce265a3ce0ad..e1c941f61f8adb9fd5fc4823b4e8449d30602b6b 100644 (file)
@@ -1,63 +1,60 @@
 <?php
 /**********************************************************************
     Copyright (C) FrontAccounting, LLC.
 <?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 
+       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
        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.  
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-class inventory_app extends application 
+class inventory_app extends application
 {
 {
-       function inventory_app() 
+       function __construct()
        {
        {
-               $this->application("stock", _($this->help_context = "&Items and Inventory"));
+               parent::__construct("stock", _($this->help_context = "&Items and Inventory"));
 
                $this->add_module(_("Transactions"));
                $this->add_lapp_function(0, _("Inventory Location &Transfers"),
 
                $this->add_module(_("Transactions"));
                $this->add_lapp_function(0, _("Inventory Location &Transfers"),
-                       "inventory/transfers.php?NewTransfer=1", 'SA_LOCATIONTRANSFER');
+                       "inventory/transfers.php?NewTransfer=1", 'SA_LOCATIONTRANSFER', MENU_TRANSACTION);
                $this->add_lapp_function(0, _("Inventory &Adjustments"),
                $this->add_lapp_function(0, _("Inventory &Adjustments"),
-                       "inventory/adjustments.php?NewAdjustment=1", 'SA_INVENTORYADJUSTMENT');
+                       "inventory/adjustments.php?NewAdjustment=1", 'SA_INVENTORYADJUSTMENT', MENU_TRANSACTION);
 
                $this->add_module(_("Inquiries and Reports"));
                $this->add_lapp_function(1, _("Inventory Item &Movements"),
 
                $this->add_module(_("Inquiries and Reports"));
                $this->add_lapp_function(1, _("Inventory Item &Movements"),
-                       "inventory/inquiry/stock_movements.php?", 'SA_ITEMSTRANSVIEW');
+                       "inventory/inquiry/stock_movements.php?", 'SA_ITEMSTRANSVIEW', MENU_INQUIRY);
                $this->add_lapp_function(1, _("Inventory Item &Status"),
                $this->add_lapp_function(1, _("Inventory Item &Status"),
-                       "inventory/inquiry/stock_status.php?", 'SA_ITEMSSTATVIEW');
+                       "inventory/inquiry/stock_status.php?", 'SA_ITEMSSTATVIEW', MENU_INQUIRY);
                $this->add_rapp_function(1, _("Inventory &Reports"),
                $this->add_rapp_function(1, _("Inventory &Reports"),
-                       "reporting/reports_main.php?Class="._("Inventory"), 'SA_ITEMSTRANSVIEW');
+                       "reporting/reports_main.php?Class=2", 'SA_ITEMSTRANSVIEW', MENU_REPORT);
 
                $this->add_module(_("Maintenance"));
                $this->add_lapp_function(2, _("&Items"),
 
                $this->add_module(_("Maintenance"));
                $this->add_lapp_function(2, _("&Items"),
-                       "inventory/manage/items.php?", 'SA_ITEM');
+                       "inventory/manage/items.php?", 'SA_ITEM', MENU_ENTRY);
                $this->add_lapp_function(2, _("&Foreign Item Codes"),
                $this->add_lapp_function(2, _("&Foreign Item Codes"),
-                       "inventory/manage/item_codes.php?", 'SA_FORITEMCODE');
+                       "inventory/manage/item_codes.php?", 'SA_FORITEMCODE', MENU_MAINTENANCE);
                $this->add_lapp_function(2, _("Sales &Kits"),
                $this->add_lapp_function(2, _("Sales &Kits"),
-                       "inventory/manage/sales_kits.php?", 'SA_SALESKIT');
+                       "inventory/manage/sales_kits.php?", 'SA_SALESKIT', MENU_MAINTENANCE);
                $this->add_lapp_function(2, _("Item &Categories"),
                $this->add_lapp_function(2, _("Item &Categories"),
-                       "inventory/manage/item_categories.php?", 'SA_ITEMCATEGORY');
-               $this->add_lapp_function(2, _("Inventory &Locations"),
-                       "inventory/manage/locations.php?", 'SA_INVENTORYLOCATION');
-               $this->add_rapp_function(2, _("Inventory &Movement Types"),
-                       "inventory/manage/movement_types.php?", 'SA_INVENTORYMOVETYPE');
+                       "inventory/manage/item_categories.php?", 'SA_ITEMCATEGORY', MENU_MAINTENANCE);
+               $this->add_rapp_function(2, _("Inventory &Locations"),
+                       "inventory/manage/locations.php?", 'SA_INVENTORYLOCATION', MENU_MAINTENANCE);
                $this->add_rapp_function(2, _("&Units of Measure"),
                $this->add_rapp_function(2, _("&Units of Measure"),
-                       "inventory/manage/item_units.php?", 'SA_UOM');
+                       "inventory/manage/item_units.php?", 'SA_UOM', MENU_MAINTENANCE);
                $this->add_rapp_function(2, _("&Reorder Levels"),
                $this->add_rapp_function(2, _("&Reorder Levels"),
-                       "inventory/reorder_level.php?", 'SA_REORDER');
+                       "inventory/reorder_level.php?", 'SA_REORDER', MENU_MAINTENANCE);
 
                $this->add_module(_("Pricing and Costs"));
                $this->add_lapp_function(3, _("Sales &Pricing"),
 
                $this->add_module(_("Pricing and Costs"));
                $this->add_lapp_function(3, _("Sales &Pricing"),
-                       "inventory/prices.php?", 'SA_SALESPRICE');
+                       "inventory/prices.php?", 'SA_SALESPRICE', MENU_MAINTENANCE);
                $this->add_lapp_function(3, _("Purchasing &Pricing"),
                $this->add_lapp_function(3, _("Purchasing &Pricing"),
-                       "inventory/purchasing_data.php?", 'SA_PURCHASEPRICING');
+                       "inventory/purchasing_data.php?", 'SA_PURCHASEPRICING', MENU_MAINTENANCE);
                $this->add_rapp_function(3, _("Standard &Costs"),
                $this->add_rapp_function(3, _("Standard &Costs"),
-                       "inventory/cost_update.php?", 'SA_STANDARDCOST');
+                       "inventory/cost_update.php?", 'SA_STANDARDCOST', MENU_MAINTENANCE);
 
                $this->add_extensions();
        }
 }
 
 
 
                $this->add_extensions();
        }
 }
 
 
-?>
\ No newline at end of file