Huge sales module changes toward delivery and invoicing separation. Includes some...
[fa-stable.git] / applications / customers.php
1 <?php
2         
3         include_once("./modules/installed_modules.php");
4         class customers_app extends application 
5         {
6                 function customers_app() 
7                 {
8                         global $installed_modules;
9                         $this->application("orders",_("Sales"));
10                 
11                         $this->add_module(_("Transactions"));
12                         $this->add_lapp_function(0, _("Sales Order Entry"),"sales/sales_order_entry.php?NewOrder=Yes");
13                         $this->add_lapp_function(0, _("Delivery Against Sales Orders"),"sales/inquiry/sales_orders_view.php?OutstandingOnly=1");
14                         $this->add_lapp_function(0, _("Direct Delivery"),"sales/sales_order_entry.php?NewDelivery=Yes");                        
15
16                         $this->add_rapp_function(0, _("Customer Payments"),"sales/customer_payments.php?");
17                         $this->add_rapp_function(0, _("Sales Invoices"),"sales/inquiry/sales_deliveries_view.php?OutstandingOnly=1");
18                         $this->add_rapp_function(0, _("Customer Credit Notes"),"sales/credit_note_entry.php?NewCredit=Yes");
19                         $this->add_rapp_function(0, _("Allocate Customer Payments or Credit Notes"),"sales/allocations/customer_allocation_main.php?");
20
21                         $this->add_module(_("Inquiries and Reports"));
22                         $this->add_lapp_function(1, _("Sales Order Inquiry"),"sales/inquiry/sales_orders_view.php?");
23                         $this->add_lapp_function(1, _("Customer Transaction Inquiry"),"sales/inquiry/customer_inquiry.php?");
24                         $this->add_lapp_function(1, "","");
25                         $this->add_lapp_function(1, _("Customer Allocation Inquiry"),"sales/inquiry/customer_allocation_inquiry.php?");
26                         
27                         $this->add_rapp_function(1, _("Customer and Sales Reports"),"reporting/reports_main.php?Class=0");
28                         
29                         $this->add_module(_("Maintenance"));
30                         $this->add_lapp_function(2, _("Add and Manage Customers"),"sales/manage/customers.php?");
31                         $this->add_lapp_function(2, _("Customer Branches"),"sales/manage/customer_branches.php?");
32                         $this->add_rapp_function(2, _("Sales Types"),"sales/manage/sales_types.php?");
33                         $this->add_rapp_function(2, _("Sales Persons"),"sales/manage/sales_people.php?");
34                         $this->add_rapp_function(2, _("Sales Areas"),"sales/manage/sales_areas.php?");
35                         $this->add_rapp_function(2, _("Credit Status Setup"),"sales/manage/credit_status.php?");
36                         if (count($installed_modules) > 0)
37                         {
38                                 foreach ($installed_modules as $mod)
39                                 {
40                                         if ($mod["tab"] == "orders")
41                                                 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
42                                 }
43                         }       
44                 }
45         }
46         
47
48 ?>