X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=applications%2Finventory.php;h=caeaf378d446dcde4c11cdf2751c773c04e899a7;hb=c70823611ef71079c28542f4810cc50c183a8cd5;hp=43e403879fee86f29bd6ca9c765821eeaeb27c9c;hpb=a5242af68e65661edb7175412444dce536a7f311;p=fa-stable.git diff --git a/applications/inventory.php b/applications/inventory.php index 43e40387..caeaf378 100644 --- a/applications/inventory.php +++ b/applications/inventory.php @@ -9,13 +9,12 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ - include_once("./modules/installed_modules.php"); class inventory_app extends application { function inventory_app() { - global $installed_modules; - $this->application("stock",_("Items and Inventory")); + global $installed_extensions; + $this->application("stock",_("&Items and Inventory")); $this->add_module(_("Transactions")); $this->add_lapp_function(0, _("Inventory Location &Transfers"),"inventory/transfers.php?NewTransfer=1"); @@ -33,7 +32,6 @@ $this->add_lapp_function(2, _("Item &Categories"),"inventory/manage/item_categories.php?"); $this->add_lapp_function(2, _("Inventory &Locations"),"inventory/manage/locations.php?"); $this->add_rapp_function(2, _("Inventory &Movement Types"),"inventory/manage/movement_types.php?"); - $this->add_rapp_function(2, _("Item Ta&x Types"),"taxes/item_tax_types.php?"); $this->add_rapp_function(2, _("&Units of Measure"),"inventory/manage/item_units.php?"); $this->add_rapp_function(2, _("&Reorder Levels"),"inventory/reorder_level.php?"); @@ -41,12 +39,12 @@ $this->add_lapp_function(3, _("Sales &Pricing"),"inventory/prices.php?"); $this->add_lapp_function(3, _("Purchasing &Pricing"),"inventory/purchasing_data.php?"); $this->add_rapp_function(3, _("Standard &Costs"),"inventory/cost_update.php?"); - if (count($installed_modules) > 0) + if (count($installed_extensions) > 0) { - foreach ($installed_modules as $mod) + foreach ($installed_extensions as $mod) { - if ($mod["tab"] == "stock") - $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?"); + if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "stock") + $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?"); } } }