a16312575240dbeff5b0e37d4490bd0206dc373a
[fa-stable.git] / applications / suppliers.php
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU Affero General Public License,
5         AGPL, as published by the Free Software Foundation, either version 
6         3 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/agpl-3.0.html>.
11 ***********************************************************************/
12         include_once("./modules/installed_modules.php");
13         class suppliers_app extends application 
14         {
15                 function suppliers_app() 
16                 {
17                         global $installed_modules;
18                         $this->application("AP",_("Purchases"));
19                         
20                         $this->add_module(_("Transactions"));
21                         $this->add_lapp_function(0, _("Purchase &Order Entry"),"purchasing/po_entry_items.php?NewOrder=Yes");
22                         $this->add_lapp_function(0, _("&Outstanding Purchase Orders Maintenance"),"purchasing/inquiry/po_search.php?");
23                         $this->add_rapp_function(0, _("&Payments to Suppliers"),"purchasing/supplier_payment.php?");
24                         $this->add_rapp_function(0, "","");
25                         $this->add_rapp_function(0, _("Supplier &Invoices"),"purchasing/supplier_invoice.php?New=1");                   
26                         $this->add_rapp_function(0, _("Supplier &Credit Notes"),"purchasing/supplier_credit.php?New=1");
27                         $this->add_rapp_function(0, _("&Allocate Supplier Payments or Credit Notes"),"purchasing/allocations/supplier_allocation_main.php?");
28                         
29                         $this->add_module(_("Inquiries and Reports"));
30                         $this->add_lapp_function(1, _("Purchase Orders &Inquiry"),"purchasing/inquiry/po_search_completed.php?");
31                         $this->add_lapp_function(1, _("Supplier Transaction &Inquiry"),"purchasing/inquiry/supplier_inquiry.php?");
32                         $this->add_lapp_function(1, "","");
33                         $this->add_lapp_function(1, _("Supplier Allocation &Inquiry"),"purchasing/inquiry/supplier_allocation_inquiry.php?");
34                         
35                         $this->add_rapp_function(1, _("Supplier and Purchasing &Reports"),"reporting/reports_main.php?Class=1");
36                         
37                         $this->add_module(_("Maintenance"));
38                         $this->add_lapp_function(2, _("&Suppliers"),"purchasing/manage/suppliers.php?");
39                         if (count($installed_modules) > 0)
40                         {
41                                 foreach ($installed_modules as $mod)
42                                 {
43                                         if ($mod["tab"] == "AP")
44                                                 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
45                                 }
46                         }       
47                 }
48         }
49         
50
51 ?>