X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fcustomers.php;h=d99e8fbbb562d6d017a2302000419fa16b1fca82;hb=6108acadfe6369362f469909f8dac47c17d21322;hp=08bfddf7cac3b5db1e70e0e7cc6587169bdbd729;hpb=baf1db99b16be17580591998a27ee47a1f67625b;p=fa-stable.git diff --git a/applications/customers.php b/applications/customers.php index 08bfddf7..d99e8fbb 100644 --- a/applications/customers.php +++ b/applications/customers.php @@ -13,12 +13,11 @@ 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"), - "sales/sales_order_entry.php?NewQuotation=Yes", 'SA_SALESORDER'); + "sales/sales_order_entry.php?NewQuotation=Yes", 'SA_SALESQUOTE'); $this->add_lapp_function(0, _("Sales &Order Entry"), "sales/sales_order_entry.php?NewOrder=Yes", 'SA_SALESORDER'); $this->add_lapp_function(0, _("Direct &Delivery"), @@ -32,9 +31,9 @@ class customers_app extends application "sales/inquiry/sales_deliveries_view.php?OutstandingOnly=1", 'SA_SALESINVOICE'); $this->add_rapp_function(0, _("&Template Delivery"), - "sales/inquiry/sales_orders_view.php?DeliveryTemplates=Yes", 'SA_SALESINVOICE'); + "sales/inquiry/sales_orders_view.php?DeliveryTemplates=Yes", 'SA_SALESDELIVERY'); $this->add_rapp_function(0, _("&Template Invoice"), - "sales/inquiry/sales_orders_view.php?InvoiceTemplates=Yes", 'SA_SALESDELIVERY'); + "sales/inquiry/sales_orders_view.php?InvoiceTemplates=Yes", 'SA_SALESINVOICE'); $this->add_rapp_function(0, _("&Create and Print Recurrent Invoices"), "sales/create_recurrent_invoices.php?", 'SA_SALESINVOICE'); $this->add_rapp_function(0, "",""); @@ -76,18 +75,10 @@ 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(); } } - + ?> \ No newline at end of file