2 /**********************************************************************
3 Copyright (C) FrontAccounting, LLC.
4 Released under the terms of the GNU Affero General Public License,
5 AGPL, as published by the Free Software Foundation, either version
6 3 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/agpl-3.0.html>.
11 ***********************************************************************/
12 include_once("./modules/installed_modules.php");
13 class inventory_app extends application
15 function inventory_app()
17 global $installed_modules;
18 $this->application("stock",_("Items and Inventory"));
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");
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");
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?");
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)
46 foreach ($installed_modules as $mod)
48 if ($mod["tab"] == "stock")
49 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");