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 class inventory_app extends application
14 function inventory_app()
16 global $installed_modules;
17 $this->application("stock",_("&Items and Inventory"));
19 $this->add_module(_("Transactions"));
20 $this->add_lapp_function(0, _("Inventory Location &Transfers"),"inventory/transfers.php?NewTransfer=1");
21 $this->add_lapp_function(0, _("Inventory &Adjustments"),"inventory/adjustments.php?NewAdjustment=1");
23 $this->add_module(_("Inquiries and Reports"));
24 $this->add_lapp_function(1, _("Inventory Item &Movements"),"inventory/inquiry/stock_movements.php?");
25 $this->add_lapp_function(1, _("Inventory Item &Status"),"inventory/inquiry/stock_status.php?");
26 $this->add_rapp_function(1, _("Inventory &Reports"),"reporting/reports_main.php?Class=2");
28 $this->add_module(_("Maintenance"));
29 $this->add_lapp_function(2, _("&Items"),"inventory/manage/items.php?");
30 $this->add_lapp_function(2, _("&Foreign Item Codes"),"inventory/manage/item_codes.php?");
31 $this->add_lapp_function(2, _("Sales &Kits"),"inventory/manage/sales_kits.php?");
32 $this->add_lapp_function(2, _("Item &Categories"),"inventory/manage/item_categories.php?");
33 $this->add_lapp_function(2, _("Inventory &Locations"),"inventory/manage/locations.php?");
34 $this->add_rapp_function(2, _("Inventory &Movement Types"),"inventory/manage/movement_types.php?");
35 $this->add_rapp_function(2, _("Item Ta&x Types"),"taxes/item_tax_types.php?");
36 $this->add_rapp_function(2, _("&Units of Measure"),"inventory/manage/item_units.php?");
37 $this->add_rapp_function(2, _("&Reorder Levels"),"inventory/reorder_level.php?");
39 $this->add_module(_("Pricing and Costs"));
40 $this->add_lapp_function(3, _("Sales &Pricing"),"inventory/prices.php?");
41 $this->add_lapp_function(3, _("Purchasing &Pricing"),"inventory/purchasing_data.php?");
42 $this->add_rapp_function(3, _("Standard &Costs"),"inventory/cost_update.php?");
43 if (count($installed_modules) > 0)
45 foreach ($installed_modules as $mod)
47 if ($mod["tab"] == "stock")
48 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");