X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fmanufacturing.php;h=44b5e630e6ff30c2d82b40f4c3c150639fd74a5d;hb=7e6e0807990447d2977b970c3a0fd28dc9250194;hp=ef6543ec0c8868f86c42b344cf8dba4d6ddd6d23;hpb=cabe16222826c897b306107ffb176dcc61eadb8c;p=fa-stable.git diff --git a/applications/manufacturing.php b/applications/manufacturing.php index ef6543ec..44b5e630 100644 --- a/applications/manufacturing.php +++ b/applications/manufacturing.php @@ -1,36 +1,44 @@ . +***********************************************************************/ +class manufacturing_app extends application +{ + function __construct() { - function manufacturing_app() - { - global $installed_modules; - $this->application("manuf",_("Manufacturing")); + parent::__construct("manuf", _($this->help_context = "&Manufacturing")); + + $this->add_module(_("Transactions")); + $this->add_lapp_function(0, _("Work &Order Entry"), + "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', MENU_TRANSACTION); - $this->add_module(_("Transactions")); - $this->add_lapp_function(0, _("Work &Order Entry"),"manufacturing/work_order_entry.php?"); - $this->add_lapp_function(0, _("&Outstanding Work Orders"),"manufacturing/search_work_orders.php?outstanding_only=1"); + $this->add_module(_("Inquiries and Reports")); + $this->add_lapp_function(1, _("Costed Bill Of Material Inquiry"), + "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', MENU_INQUIRY); + $this->add_lapp_function(1, _("Work Order &Inquiry"), + "manufacturing/search_work_orders.php?", 'SA_MANUFTRANSVIEW', MENU_INQUIRY); + $this->add_rapp_function(1, _("Manufacturing &Reports"), + "reporting/reports_main.php?Class=3", 'SA_MANUFTRANSVIEW', MENU_REPORT); - $this->add_module(_("Inquiries and Reports")); - //$this->add_lapp_function(1, _("Costed Bill Of Material Inquiry"),"manufacturing/inquiry/bom_cost_inquiry.php?"); - $this->add_lapp_function(1, _("Inventory Item Where Used &Inquiry"),"manufacturing/inquiry/where_used_inquiry.php?"); - $this->add_lapp_function(1, _("Work Order &Inquiry"),"manufacturing/search_work_orders.php?"); - $this->add_rapp_function(1, _("Manufacturing &Reports"),"reporting/reports_main.php?Class=3"); + $this->add_module(_("Maintenance")); + $this->add_lapp_function(2, _("&Bills Of Material"), + "manufacturing/manage/bom_edit.php?", 'SA_BOM', MENU_ENTRY); + $this->add_lapp_function(2, _("&Work Centres"), + "manufacturing/manage/work_centres.php?", 'SA_WORKCENTRES', MENU_MAINTENANCE); - $this->add_module(_("Maintenance")); - $this->add_lapp_function(2, _("&Bills Of Material"),"manufacturing/manage/bom_edit.php?"); - $this->add_lapp_function(2, _("&Work Centres"),"manufacturing/manage/work_centres.php?"); - if (count($installed_modules) > 0) - { - foreach ($installed_modules as $mod) - { - if ($mod["tab"] == "manuf") - $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?"); - } - } - } + $this->add_extensions(); } +} -?> \ No newline at end of file