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