01ea6e7a08b7608f9f77b2c909f8ee7937e91056
[fa-stable.git] / applications / manufacturing.php
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU General Public License, GPL, 
5         as published by the Free Software Foundation, either version 3 
6         of the License, or (at your option) any later version.
7     This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
10     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12         include_once("./modules/installed_modules.php");
13         class manufacturing_app extends application
14         {
15                 function manufacturing_app()
16                 {
17                         global $installed_modules;
18                         $this->application("manuf",_("Manufacturing"));
19
20                         $this->add_module(_("Transactions"));
21                         $this->add_lapp_function(0, _("Work &Order Entry"),"manufacturing/work_order_entry.php?");
22                         $this->add_lapp_function(0, _("&Outstanding Work Orders"),"manufacturing/search_work_orders.php?outstanding_only=1");
23
24                         $this->add_module(_("Inquiries and Reports"));
25                         //$this->add_lapp_function(1, _("Costed Bill Of Material Inquiry"),"manufacturing/inquiry/bom_cost_inquiry.php?");
26                         $this->add_lapp_function(1, _("Inventory Item Where Used &Inquiry"),"manufacturing/inquiry/where_used_inquiry.php?");
27                         $this->add_lapp_function(1, _("Work Order &Inquiry"),"manufacturing/search_work_orders.php?");
28                         $this->add_rapp_function(1, _("Manufacturing &Reports"),"reporting/reports_main.php?Class=3");
29
30                         $this->add_module(_("Maintenance"));
31                         $this->add_lapp_function(2, _("&Bills Of Material"),"manufacturing/manage/bom_edit.php?");
32                         $this->add_lapp_function(2, _("&Work Centres"),"manufacturing/manage/work_centres.php?");
33                         if (count($installed_modules) > 0)
34                         {
35                                 foreach ($installed_modules as $mod)
36                                 {
37                                         if ($mod["tab"] == "manuf")
38                                                 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
39                                 }
40                         }
41                 }
42         }
43
44
45 ?>