43e403879fee86f29bd6ca9c765821eeaeb27c9c
[fa-stable.git] / applications / inventory.php
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU General Public License, GPL, 
5         as published by the Free Software Foundation, either version 3 
6         of the License, or (at your option) any later version.
7     This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
10     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12         include_once("./modules/installed_modules.php");
13         class inventory_app extends application 
14         {
15                 function inventory_app() 
16                 {
17                         global $installed_modules;
18                         $this->application("stock",_("Items and Inventory"));
19
20                         $this->add_module(_("Transactions"));
21                         $this->add_lapp_function(0, _("Inventory Location &Transfers"),"inventory/transfers.php?NewTransfer=1");
22                         $this->add_lapp_function(0, _("Inventory &Adjustments"),"inventory/adjustments.php?NewAdjustment=1");
23
24                         $this->add_module(_("Inquiries and Reports"));
25                         $this->add_lapp_function(1, _("Inventory Item &Movements"),"inventory/inquiry/stock_movements.php?");
26                         $this->add_lapp_function(1, _("Inventory Item &Status"),"inventory/inquiry/stock_status.php?");
27                         $this->add_rapp_function(1, _("Inventory &Reports"),"reporting/reports_main.php?Class=2");
28
29                         $this->add_module(_("Maintenance"));
30                         $this->add_lapp_function(2, _("&Items"),"inventory/manage/items.php?");
31                         $this->add_lapp_function(2, _("&Foreign Item Codes"),"inventory/manage/item_codes.php?");
32                         $this->add_lapp_function(2, _("Sales &Kits"),"inventory/manage/sales_kits.php?");
33                         $this->add_lapp_function(2, _("Item &Categories"),"inventory/manage/item_categories.php?");
34                         $this->add_lapp_function(2, _("Inventory &Locations"),"inventory/manage/locations.php?");
35                         $this->add_rapp_function(2, _("Inventory &Movement Types"),"inventory/manage/movement_types.php?");
36                         $this->add_rapp_function(2, _("Item Ta&x Types"),"taxes/item_tax_types.php?");
37                         $this->add_rapp_function(2, _("&Units of Measure"),"inventory/manage/item_units.php?");
38                         $this->add_rapp_function(2, _("&Reorder Levels"),"inventory/reorder_level.php?");
39
40                         $this->add_module(_("Pricing and Costs"));
41                         $this->add_lapp_function(3, _("Sales &Pricing"),"inventory/prices.php?");
42                         $this->add_lapp_function(3, _("Purchasing &Pricing"),"inventory/purchasing_data.php?");
43                         $this->add_rapp_function(3, _("Standard &Costs"),"inventory/cost_update.php?");
44                         if (count($installed_modules) > 0)
45                         {
46                                 foreach ($installed_modules as $mod)
47                                 {
48                                         if ($mod["tab"] == "stock")
49                                                 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
50                                 }
51                         }       
52                 }
53         }
54
55
56 ?>