X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Finventory.php;h=b5b32f53e285c7967b0d4db021613235f9507375;hb=70c2dbcf463a5d500d15b8510c7f45e527a7fa53;hp=308c93b0d7922b17d4079ffc6ee3620021ba86a2;hpb=baf1db99b16be17580591998a27ee47a1f67625b;p=fa-stable.git diff --git a/applications/inventory.php b/applications/inventory.php index 308c93b0..b5b32f53 100644 --- a/applications/inventory.php +++ b/applications/inventory.php @@ -1,20 +1,19 @@ . ***********************************************************************/ -class inventory_app extends application +class inventory_app extends application { - function inventory_app() + function inventory_app() { - global $installed_extensions; - $this->application("stock",_("&Items and Inventory")); + $this->application("stock", _($this->help_context = "&Items and Inventory")); $this->add_module(_("Transactions")); $this->add_lapp_function(0, _("Inventory Location &Transfers"), @@ -55,16 +54,8 @@ class inventory_app extends application "inventory/purchasing_data.php?", 'SA_PURCHASEPRICING'); $this->add_rapp_function(3, _("Standard &Costs"), "inventory/cost_update.php?", 'SA_STANDARDCOST'); - if (count($installed_extensions) > 0) - { - foreach ($installed_extensions as $mod) - { - if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "stock") - $this->add_rapp_function(2, $mod["title"], - "modules/".$mod["path"]."/".$mod["filename"]."?", - isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' ); - } - } + + $this->add_extensions(); } }