c00b2f7640221ec13f2c24ec9e64bd88bdb7065d
[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 customers_app() 
15                 {
16                         global $installed_modules;
17                         $this->application("orders",_("&Sales"));
18                 
19                         $this->add_module(_("Transactions"));
20                         $this->add_lapp_function(0, _("Sales &Quotation Entry"),"sales/sales_order_entry.php?NewQuotation=Yes");
21                         $this->add_lapp_function(0, _("Sales &Order Entry"),"sales/sales_order_entry.php?NewOrder=Yes");
22                         $this->add_lapp_function(0, _("Direct &Delivery"),"sales/sales_order_entry.php?NewDelivery=0");                 
23                         $this->add_lapp_function(0, _("Direct &Invoice"),"sales/sales_order_entry.php?NewInvoice=0");
24                         $this->add_lapp_function(0, "","");
25                         $this->add_lapp_function(0, _("&Delivery Against Sales Orders"),"sales/inquiry/sales_orders_view.php?OutstandingOnly=1");
26                         $this->add_lapp_function(0, _("&Invoice Against Sales Delivery"),"sales/inquiry/sales_deliveries_view.php?OutstandingOnly=1");
27
28                         $this->add_rapp_function(0, _("&Template Delivery"),"sales/inquiry/sales_orders_view.php?DeliveryTemplates=Yes");
29                         $this->add_rapp_function(0, _("&Template Invoice"),"sales/inquiry/sales_orders_view.php?InvoiceTemplates=Yes");
30                         $this->add_rapp_function(0, _("&Create and Print Recurrent Invoices"),"sales/create_recurrent_invoices.php?");
31                         $this->add_rapp_function(0, "","");
32                         $this->add_rapp_function(0, _("Customer &Payments"),"sales/customer_payments.php?");
33                         $this->add_rapp_function(0, _("Customer &Credit Notes"),"sales/credit_note_entry.php?NewCredit=Yes");
34                         $this->add_rapp_function(0, _("&Allocate Customer Payments or Credit Notes"),"sales/allocations/customer_allocation_main.php?");
35
36                         $this->add_module(_("Inquiries and Reports"));
37                         $this->add_lapp_function(1, _("Sales Quotation I&nquiry"),"sales/inquiry/sales_orders_view.php?type=32");
38                         $this->add_lapp_function(1, _("Sales Order &Inquiry"),"sales/inquiry/sales_orders_view.php?type=30");
39                         $this->add_lapp_function(1, _("Customer Transaction &Inquiry"),"sales/inquiry/customer_inquiry.php?");
40                         $this->add_lapp_function(1, "","");
41                         $this->add_lapp_function(1, _("Customer Allocation &Inquiry"),"sales/inquiry/customer_allocation_inquiry.php?");
42                         
43                         $this->add_rapp_function(1, _("Customer and Sales &Reports"),"reporting/reports_main.php?Class=0");
44                         
45                         $this->add_module(_("Maintenance"));
46                         $this->add_lapp_function(2, _("Add and Manage &Customers"),"sales/manage/customers.php?");
47                         $this->add_lapp_function(2, _("Customer &Branches"),"sales/manage/customer_branches.php?");
48                         $this->add_lapp_function(2, _("Sales &Groups"),"sales/manage/sales_groups.php?");
49                         $this->add_lapp_function(2, _("Recurrent &Invoices"),"sales/manage/recurrent_invoices.php?");
50                         $this->add_rapp_function(2, _("Sales T&ypes"),"sales/manage/sales_types.php?");
51                         $this->add_rapp_function(2, _("Sales &Persons"),"sales/manage/sales_people.php?");
52                         $this->add_rapp_function(2, _("Sales &Areas"),"sales/manage/sales_areas.php?");
53                         $this->add_rapp_function(2, _("Credit &Status Setup"),"sales/manage/credit_status.php?");
54                         if (count($installed_modules) > 0)
55                         {
56                                 foreach ($installed_modules as $mod)
57                                 {
58                                         if ($mod["tab"] == "orders")
59                                                 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
60                                 }
61                         }       
62                 }
63         }
64         
65
66 ?>