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 class suppliers_app extends application
14 function suppliers_app()
16 global $installed_modules;
17 $this->application("AP",_("&Purchases"));
19 $this->add_module(_("Transactions"));
20 $this->add_lapp_function(0, _("Purchase &Order Entry"),"purchasing/po_entry_items.php?NewOrder=Yes");
21 $this->add_lapp_function(0, _("&Outstanding Purchase Orders Maintenance"),"purchasing/inquiry/po_search.php?");
22 $this->add_rapp_function(0, _("&Payments to Suppliers"),"purchasing/supplier_payment.php?");
23 $this->add_rapp_function(0, "","");
24 $this->add_rapp_function(0, _("Supplier &Invoices"),"purchasing/supplier_invoice.php?New=1");
25 $this->add_rapp_function(0, _("Supplier &Credit Notes"),"purchasing/supplier_credit.php?New=1");
26 $this->add_rapp_function(0, _("&Allocate Supplier Payments or Credit Notes"),"purchasing/allocations/supplier_allocation_main.php?");
28 $this->add_module(_("Inquiries and Reports"));
29 $this->add_lapp_function(1, _("Purchase Orders &Inquiry"),"purchasing/inquiry/po_search_completed.php?");
30 $this->add_lapp_function(1, _("Supplier Transaction &Inquiry"),"purchasing/inquiry/supplier_inquiry.php?");
31 $this->add_lapp_function(1, "","");
32 $this->add_lapp_function(1, _("Supplier Allocation &Inquiry"),"purchasing/inquiry/supplier_allocation_inquiry.php?");
34 $this->add_rapp_function(1, _("Supplier and Purchasing &Reports"),"reporting/reports_main.php?Class=1");
36 $this->add_module(_("Maintenance"));
37 $this->add_lapp_function(2, _("&Suppliers"),"purchasing/manage/suppliers.php?");
38 if (count($installed_modules) > 0)
40 foreach ($installed_modules as $mod)
42 if ($mod["tab"] == "AP")
43 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");