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
14 function customers_app()
16 $this->application("orders", _($this->help_context = "&Sales"));
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);
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_rapp_function(0, _("Customer &Credit Notes"),
43 "sales/credit_note_entry.php?NewCredit=Yes", 'SA_SALESCREDIT', MENU_TRANSACTION);
44 $this->add_rapp_function(0, _("&Allocate Customer Payments or Credit Notes"),
45 "sales/allocations/customer_allocation_main.php?", 'SA_SALESALLOC', MENU_TRANSACTION);
47 $this->add_module(_("Inquiries and Reports"));
48 $this->add_lapp_function(1, _("Sales Quotation I&nquiry"),
49 "sales/inquiry/sales_orders_view.php?type=32", 'SA_SALESTRANSVIEW', MENU_INQUIRY);
50 $this->add_lapp_function(1, _("Sales Order &Inquiry"),
51 "sales/inquiry/sales_orders_view.php?type=30", 'SA_SALESTRANSVIEW', MENU_INQUIRY);
52 $this->add_lapp_function(1, _("Customer Transaction &Inquiry"),
53 "sales/inquiry/customer_inquiry.php?", 'SA_SALESTRANSVIEW', MENU_INQUIRY);
54 $this->add_lapp_function(1, "","");
55 $this->add_lapp_function(1, _("Customer Allocation &Inquiry"),
56 "sales/inquiry/customer_allocation_inquiry.php?", 'SA_SALESALLOC', MENU_INQUIRY);
58 $this->add_rapp_function(1, _("Customer and Sales &Reports"),
59 "reporting/reports_main.php?Class=0", 'SA_SALESTRANSVIEW', MENU_REPORT);
61 $this->add_module(_("Maintenance"));
62 $this->add_lapp_function(2, _("Add and Manage &Customers"),
63 "sales/manage/customers.php?", 'SA_CUSTOMER', MENU_ENTRY);
64 $this->add_lapp_function(2, _("Customer &Branches"),
65 "sales/manage/customer_branches.php?", 'SA_CUSTOMER', MENU_ENTRY);
66 $this->add_lapp_function(2, _("Sales &Groups"),
67 "sales/manage/sales_groups.php?", 'SA_SALESGROUP', MENU_MAINTENANCE);
68 $this->add_lapp_function(2, _("Recurrent &Invoices"),
69 "sales/manage/recurrent_invoices.php?", 'SA_SRECURRENT', MENU_MAINTENANCE);
70 $this->add_rapp_function(2, _("Sales T&ypes"),
71 "sales/manage/sales_types.php?", 'SA_SALESTYPES', MENU_MAINTENANCE);
72 $this->add_rapp_function(2, _("Sales &Persons"),
73 "sales/manage/sales_people.php?", 'SA_SALESMAN', MENU_MAINTENANCE);
74 $this->add_rapp_function(2, _("Sales &Areas"),
75 "sales/manage/sales_areas.php?", 'SA_SALESAREA', MENU_MAINTENANCE);
76 $this->add_rapp_function(2, _("Credit &Status Setup"),
77 "sales/manage/credit_status.php?", 'SA_CRSTATUS', MENU_MAINTENANCE);
79 $this->add_extensions();