[0004212] Work Order Entry: fixed error when voided WO refence is reused.
[fa-stable.git] / applications / customers.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 customers_app extends application 
13 {
14         function __construct() 
15         {
16                 parent::__construct("orders", _($this->help_context = "&Sales"));
17         
18                 $this->add_module(_("Transactions"));
19                 $this->add_lapp_function(0, _("Sales &Quotation Entry"),
20                         "sales/sales_order_entry.php?NewQuotation=Yes", 'SA_SALESQUOTE', MENU_TRANSACTION);
21                 $this->add_lapp_function(0, _("Sales &Order Entry"),
22                         "sales/sales_order_entry.php?NewOrder=Yes", 'SA_SALESORDER', MENU_TRANSACTION);
23                 $this->add_lapp_function(0, _("Direct &Delivery"),
24                         "sales/sales_order_entry.php?NewDelivery=0", 'SA_SALESDELIVERY', MENU_TRANSACTION);
25                 $this->add_lapp_function(0, _("Direct &Invoice"),
26                         "sales/sales_order_entry.php?NewInvoice=0", 'SA_SALESINVOICE', MENU_TRANSACTION);
27                 $this->add_lapp_function(0, "","");
28                 $this->add_lapp_function(0, _("&Delivery Against Sales Orders"),
29                         "sales/inquiry/sales_orders_view.php?OutstandingOnly=1", 'SA_SALESDELIVERY', MENU_TRANSACTION);
30                 $this->add_lapp_function(0, _("&Invoice Against Sales Delivery"),
31                         "sales/inquiry/sales_deliveries_view.php?OutstandingOnly=1", 'SA_SALESINVOICE', MENU_TRANSACTION);
32
33                 $this->add_rapp_function(0, _("&Template Delivery"),
34                         "sales/inquiry/sales_orders_view.php?DeliveryTemplates=Yes", 'SA_SALESDELIVERY', MENU_TRANSACTION);
35                 $this->add_rapp_function(0, _("&Template Invoice"),
36                         "sales/inquiry/sales_orders_view.php?InvoiceTemplates=Yes", 'SA_SALESINVOICE', MENU_TRANSACTION);
37                 $this->add_rapp_function(0, _("&Create and Print Recurrent Invoices"),
38                         "sales/create_recurrent_invoices.php?", 'SA_SALESINVOICE', MENU_TRANSACTION);
39                 $this->add_rapp_function(0, "","");
40                 $this->add_rapp_function(0, _("Customer &Payments"),
41                         "sales/customer_payments.php?", 'SA_SALESPAYMNT', MENU_TRANSACTION);
42                 $this->add_lapp_function(0, _("Invoice &Prepaid Orders"),
43                         "sales/inquiry/sales_orders_view.php?PrepaidOrders=Yes", 'SA_SALESINVOICE', MENU_TRANSACTION);
44                 $this->add_rapp_function(0, _("Customer &Credit Notes"),
45                         "sales/credit_note_entry.php?NewCredit=Yes", 'SA_SALESCREDIT', MENU_TRANSACTION);
46                 $this->add_rapp_function(0, _("&Allocate Customer Payments or Credit Notes"),
47                         "sales/allocations/customer_allocation_main.php?", 'SA_SALESALLOC', MENU_TRANSACTION);
48
49                 $this->add_module(_("Inquiries and Reports"));
50                 $this->add_lapp_function(1, _("Sales Quotation I&nquiry"),
51                         "sales/inquiry/sales_orders_view.php?type=32", 'SA_SALESTRANSVIEW', MENU_INQUIRY);
52                 $this->add_lapp_function(1, _("Sales Order &Inquiry"),
53                         "sales/inquiry/sales_orders_view.php?type=30", 'SA_SALESTRANSVIEW', MENU_INQUIRY);
54                 $this->add_lapp_function(1, _("Customer Transaction &Inquiry"),
55                         "sales/inquiry/customer_inquiry.php?", 'SA_SALESTRANSVIEW', MENU_INQUIRY);
56                 $this->add_lapp_function(1, _("Customer Allocation &Inquiry"),
57                         "sales/inquiry/customer_allocation_inquiry.php?", 'SA_SALESALLOC', MENU_INQUIRY);
58
59                 $this->add_rapp_function(1, _("Customer and Sales &Reports"),
60                         "reporting/reports_main.php?Class=0", 'SA_SALESTRANSVIEW', MENU_REPORT);
61
62                 $this->add_module(_("Maintenance"));
63                 $this->add_lapp_function(2, _("Add and Manage &Customers"),
64                         "sales/manage/customers.php?", 'SA_CUSTOMER', MENU_ENTRY);
65                 $this->add_lapp_function(2, _("Customer &Branches"),
66                         "sales/manage/customer_branches.php?", 'SA_CUSTOMER', MENU_ENTRY);
67                 $this->add_lapp_function(2, _("Sales &Groups"),
68                         "sales/manage/sales_groups.php?", 'SA_SALESGROUP', MENU_MAINTENANCE);
69                 $this->add_lapp_function(2, _("Recurrent &Invoices"),
70                         "sales/manage/recurrent_invoices.php?", 'SA_SRECURRENT', MENU_MAINTENANCE);
71                 $this->add_rapp_function(2, _("Sales T&ypes"),
72                         "sales/manage/sales_types.php?", 'SA_SALESTYPES', MENU_MAINTENANCE);
73                 $this->add_rapp_function(2, _("Sales &Persons"),
74                         "sales/manage/sales_people.php?", 'SA_SALESMAN', MENU_MAINTENANCE);
75                 $this->add_rapp_function(2, _("Sales &Areas"),
76                         "sales/manage/sales_areas.php?", 'SA_SALESAREA', MENU_MAINTENANCE);
77                 $this->add_rapp_function(2, _("Credit &Status Setup"),
78                         "sales/manage/credit_status.php?", 'SA_CRSTATUS', MENU_MAINTENANCE);
79
80                 $this->add_extensions();
81         }
82 }
83
84