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 $this->application("AP", _($this->help_context = "&Purchases"));
18 $this->add_module(_("Transactions"));
19 $this->add_lapp_function(0, _("Purchase &Order Entry"),
20 "purchasing/po_entry_items.php?NewOrder=Yes", 'SA_PURCHASEORDER', MENU_TRANSACTION);
21 $this->add_lapp_function(0, _("&Outstanding Purchase Orders Maintenance"),
22 "purchasing/inquiry/po_search.php?", 'SA_GRN', MENU_TRANSACTION);
23 $this->add_lapp_function(0, _("Direct &GRN"),
24 "purchasing/po_entry_items.php?NewGRN=Yes", 'SA_GRN', MENU_TRANSACTION);
25 $this->add_lapp_function(0, _("Direct &Invoice"),
26 "purchasing/po_entry_items.php?NewInvoice=Yes", 'SA_SUPPLIERINVOICE', MENU_TRANSACTION);
28 $this->add_rapp_function(0, _("&Payments to Suppliers"),
29 "purchasing/supplier_payment.php?", 'SA_SUPPLIERPAYMNT', MENU_TRANSACTION);
30 $this->add_rapp_function(0, "","");
31 $this->add_rapp_function(0, _("Supplier &Invoices"),
32 "purchasing/supplier_invoice.php?New=1", 'SA_SUPPLIERINVOICE', MENU_TRANSACTION);
33 $this->add_rapp_function(0, _("Supplier &Credit Notes"),
34 "purchasing/supplier_credit.php?New=1", 'SA_SUPPLIERCREDIT', MENU_TRANSACTION);
35 $this->add_rapp_function(0, _("&Allocate Supplier Payments or Credit Notes"),
36 "purchasing/allocations/supplier_allocation_main.php?", 'SA_SUPPLIERALLOC', MENU_TRANSACTION);
38 $this->add_module(_("Inquiries and Reports"));
39 $this->add_lapp_function(1, _("Purchase Orders &Inquiry"),
40 "purchasing/inquiry/po_search_completed.php?", 'SA_SUPPTRANSVIEW', MENU_INQUIRY);
41 $this->add_lapp_function(1, _("Supplier Transaction &Inquiry"),
42 "purchasing/inquiry/supplier_inquiry.php?", 'SA_SUPPTRANSVIEW', MENU_INQUIRY);
43 $this->add_lapp_function(1, _("Supplier Allocation &Inquiry"),
44 "purchasing/inquiry/supplier_allocation_inquiry.php?", 'SA_SUPPLIERALLOC', MENU_INQUIRY);
46 $this->add_rapp_function(1, _("Supplier and Purchasing &Reports"),
47 "reporting/reports_main.php?Class=1", 'SA_SUPPTRANSVIEW', MENU_REPORT);
49 $this->add_module(_("Maintenance"));
50 $this->add_lapp_function(2, _("&Suppliers"),
51 "purchasing/manage/suppliers.php?", 'SA_SUPPLIER', MENU_ENTRY);
53 $this->add_extensions();