X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fmanufacturing.php;h=9a7c393bed79cf3bc452cad85339ddaea4efa024;hb=845b3991baafeaf004abac0016430f398f71b232;hp=60650c690282c51678a5b9cb6dcd9070d2b446c9;hpb=baf1db99b16be17580591998a27ee47a1f67625b;p=fa-stable.git diff --git a/applications/manufacturing.php b/applications/manufacturing.php index 60650c69..9a7c393b 100644 --- a/applications/manufacturing.php +++ b/applications/manufacturing.php @@ -13,42 +13,32 @@ class manufacturing_app extends application { function manufacturing_app() { - global $installed_extensions; - $this->application("manuf",_("&Manufacturing")); + $this->application("manuf", _($this->help_context = "&Manufacturing")); $this->add_module(_("Transactions")); $this->add_lapp_function(0, _("Work &Order Entry"), - "manufacturing/work_order_entry.php?", 'SA_WORKORDERENTRY'); + "manufacturing/work_order_entry.php?", 'SA_WORKORDERENTRY', MENU_TRANSACTION); $this->add_lapp_function(0, _("&Outstanding Work Orders"), - "manufacturing/search_work_orders.php?outstanding_only=1", 'SA_MANUFTRANSVIEW'); + "manufacturing/search_work_orders.php?outstanding_only=1", 'SA_MANUFTRANSVIEW', MENU_TRANSACTION); $this->add_module(_("Inquiries and Reports")); $this->add_lapp_function(1, _("Costed Bill Of Material Inquiry"), - "manufacturing/inquiry/bom_cost_inquiry.php?", 'SA_WORKORDERCOST'); + "manufacturing/inquiry/bom_cost_inquiry.php?", 'SA_WORKORDERCOST', MENU_INQUIRY); $this->add_lapp_function(1, _("Inventory Item Where Used &Inquiry"), - "manufacturing/inquiry/where_used_inquiry.php?", 'SA_WORKORDERANALYTIC'); + "manufacturing/inquiry/where_used_inquiry.php?", 'SA_WORKORDERANALYTIC', MENU_INQUIRY); $this->add_lapp_function(1, _("Work Order &Inquiry"), - "manufacturing/search_work_orders.php?", 'SA_MANUFTRANSVIEW'); + "manufacturing/search_work_orders.php?", 'SA_MANUFTRANSVIEW', MENU_INQUIRY); $this->add_rapp_function(1, _("Manufacturing &Reports"), - "reporting/reports_main.php?Class=3", 'SA_MANUFTRANSVIEW'); + "reporting/reports_main.php?Class=3", 'SA_MANUFTRANSVIEW', MENU_REPORT); $this->add_module(_("Maintenance")); $this->add_lapp_function(2, _("&Bills Of Material"), - "manufacturing/manage/bom_edit.php?", 'SA_BOM'); + "manufacturing/manage/bom_edit.php?", 'SA_BOM', MENU_ENTRY); $this->add_lapp_function(2, _("&Work Centres"), - "manufacturing/manage/work_centres.php?", 'SA_WORKCENTRES'); - if (count($installed_extensions) > 0) - { - foreach ($installed_extensions as $mod) - { - if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "manuf") - $this->add_rapp_function(2, $mod["title"], - "modules/".$mod["path"]."/".$mod["filename"]."?", - isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' ); - } - } + "manufacturing/manage/work_centres.php?", 'SA_WORKCENTRES', MENU_MAINTENANCE); + + $this->add_extensions(); } } -?> \ No newline at end of file