Feature 5388: Print Invoices (documents) list gets too long. Fixed by default 180...
[fa-stable.git] / applications / suppliers.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 class suppliers_app extends application 
13 {
14         function __construct() 
15         {
16                 parent::__construct("AP", _($this->help_context = "&Purchases"));
17
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 Supplier &Invoice"),
26                         "purchasing/po_entry_items.php?NewInvoice=Yes", 'SA_SUPPLIERINVOICE', MENU_TRANSACTION);
27
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);
37
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);
45
46                 $this->add_rapp_function(1, _("Supplier and Purchasing &Reports"),
47                         "reporting/reports_main.php?Class=1", 'SA_SUPPTRANSVIEW', MENU_REPORT);
48
49                 $this->add_module(_("Maintenance"));
50                 $this->add_lapp_function(2, _("&Suppliers"),
51                         "purchasing/manage/suppliers.php?", 'SA_SUPPLIER', MENU_ENTRY);
52
53                 $this->add_extensions();
54         }
55 }
56
57