Copyright notes at top op every source file
[fa-stable.git] / applications / customers.php
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU Affero General Public License,
5         AGPL, as published by the Free Software Foundation, either version 
6         3 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/agpl-3.0.html>.
11 ***********************************************************************/
12         include_once("./modules/installed_modules.php");
13         class customers_app extends application 
14         {
15                 function customers_app() 
16                 {
17                         global $installed_modules;
18                         $this->application("orders",_("Sales"));
19                 
20                         $this->add_module(_("Transactions"));
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 Order &Inquiry"),"sales/inquiry/sales_orders_view.php?");
38                         $this->add_lapp_function(1, _("Customer Transaction &Inquiry"),"sales/inquiry/customer_inquiry.php?");
39                         $this->add_lapp_function(1, "","");
40                         $this->add_lapp_function(1, _("Customer Allocation &Inquiry"),"sales/inquiry/customer_allocation_inquiry.php?");
41                         
42                         $this->add_rapp_function(1, _("Customer and Sales &Reports"),"reporting/reports_main.php?Class=0");
43                         
44                         $this->add_module(_("Maintenance"));
45                         $this->add_lapp_function(2, _("Add and Manage &Customers"),"sales/manage/customers.php?");
46                         $this->add_lapp_function(2, _("Customer &Branches"),"sales/manage/customer_branches.php?");
47                         $this->add_lapp_function(2, _("Sales &Groups"),"sales/manage/sales_groups.php?");
48                         $this->add_lapp_function(2, _("Recurrent &Invoices"),"sales/manage/recurrent_invoices.php?");
49                         $this->add_rapp_function(2, _("Sales T&ypes"),"sales/manage/sales_types.php?");
50                         $this->add_rapp_function(2, _("Sales &Persons"),"sales/manage/sales_people.php?");
51                         $this->add_rapp_function(2, _("Sales &Areas"),"sales/manage/sales_areas.php?");
52                         $this->add_rapp_function(2, _("Credit &Status Setup"),"sales/manage/credit_status.php?");
53                         if (count($installed_modules) > 0)
54                         {
55                                 foreach ($installed_modules as $mod)
56                                 {
57                                         if ($mod["tab"] == "orders")
58                                                 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
59                                 }
60                         }       
61                 }
62         }
63         
64
65 ?>