X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=applications%2Fcustomers.php;h=d99e8fbbb562d6d017a2302000419fa16b1fca82;hb=181cd75a7b027c398cc382974bc9f97cba8c48b3;hp=446760fca126ee872c5a45780a67d3f6e6f6153c;hpb=1dacc4f4632fbaeb1dc0b473739092f812f9660f;p=fa-stable.git diff --git a/applications/customers.php b/applications/customers.php index 446760fc..d99e8fbb 100644 --- a/applications/customers.php +++ b/applications/customers.php @@ -13,8 +13,7 @@ class customers_app extends application { function customers_app() { - global $installed_extensions; - $this->application("orders",_("&Sales")); + $this->application("orders", _($this->help_context = "&Sales")); $this->add_module(_("Transactions")); $this->add_lapp_function(0, _("Sales &Quotation Entry"), @@ -76,16 +75,8 @@ class customers_app extends application "sales/manage/sales_areas.php?", 'SA_SALESAREA'); $this->add_rapp_function(2, _("Credit &Status Setup"), "sales/manage/credit_status.php?", 'SA_CRSTATUS'); - if (count($installed_extensions) > 0) - { - foreach ($installed_extensions as $mod) - { - if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "orders") - $this->add_rapp_function(2, $mod["title"], - "modules/".$mod["path"]."/".$mod["filename"]."?", - isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' ); - } - } + + $this->add_extensions(); } }