Added option to handle Jalali and Islamic Calendars
[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, _("Select a Sales Order to Invoice"),"sales/inquiry/sales_orders_view.php?&OutstandingOnly=1");
14                         $this->add_rapp_function(0, _("Customer Payments"),"sales/customer_payments.php?");
15                         $this->add_rapp_function(0, "","");                     
16                         $this->add_rapp_function(0, _("Sales Invoices"),"sales/sales_order_entry.php?NewInvoice=Yes");                  
17                         $this->add_rapp_function(0, _("Customer Credit Notes"),"sales/credit_note_entry.php?&NewCredit=Yes");
18                         $this->add_rapp_function(0, _("Allocate Customer Payments or Credit Notes"),"sales/allocations/customer_allocation_main.php?");
19
20                         $this->add_module(_("Inquiries and Reports"));
21                         $this->add_lapp_function(1, _("Sales Order Inquiry"),"sales/inquiry/sales_orders_view.php?");                   
22                         $this->add_lapp_function(1, _("Customer Transaction Inquiry"),"sales/inquiry/customer_inquiry.php?");
23                         $this->add_lapp_function(1, "","");
24                         $this->add_lapp_function(1, _("Customer Allocation Inquiry"),"sales/inquiry/customer_allocation_inquiry.php?");
25                         
26                         $this->add_rapp_function(1, _("Customer and Sales Reports"),"reporting/reports_main.php?Class=0");
27                         
28                         $this->add_module(_("Maintenance"));
29                         $this->add_lapp_function(2, _("Add and Manage Customers"),"sales/manage/customers.php?");
30                         $this->add_lapp_function(2, _("Customer Branches"),"sales/manage/customer_branches.php?");
31                         $this->add_rapp_function(2, _("Sales Types"),"sales/manage/sales_types.php?");
32                         $this->add_rapp_function(2, _("Sales Persons"),"sales/manage/sales_people.php?");
33                         $this->add_rapp_function(2, _("Sales Areas"),"sales/manage/sales_areas.php?");
34                         $this->add_rapp_function(2, _("Credit Status Setup"),"sales/manage/credit_status.php?");
35                         if (count($installed_modules) > 0)
36                         {
37                                 foreach ($installed_modules as $mod)
38                                 {
39                                         if ($mod["tab"] == "orders")
40                                                 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
41                                 }
42                         }       
43                 }
44         }
45         
46
47 ?>