{
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"),
"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, "","");
"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