Added Attachment of Documents and a couple of links from supplier invoice/crfedit...
[fa-stable.git] / applications / suppliers.php
1 <?php
2         
3         include_once("./modules/installed_modules.php");
4         class suppliers_app extends application 
5         {
6                 function suppliers_app() 
7                 {
8                         global $installed_modules;
9                         $this->application("AP",_("Purchases"));
10                         
11                         $this->add_module(_("Transactions"));
12                         $this->add_lapp_function(0, _("Purchase &Order Entry"),"purchasing/po_entry_items.php?NewOrder=Yes");
13                         $this->add_lapp_function(0, _("&Outstanding Purchase Orders Maintenance"),"purchasing/inquiry/po_search.php?");
14                         $this->add_rapp_function(0, _("&Payments to Suppliers"),"purchasing/supplier_payment.php?");
15                         $this->add_rapp_function(0, "","");
16                         $this->add_rapp_function(0, _("Supplier &Invoices"),"purchasing/supplier_invoice.php?New=1");                   
17                         $this->add_rapp_function(0, _("Supplier &Credit Notes"),"purchasing/supplier_credit.php?New=1");
18                         $this->add_rapp_function(0, _("&Allocate Supplier Payments or Credit Notes"),"purchasing/allocations/supplier_allocation_main.php?");
19                         
20                         $this->add_module(_("Inquiries and Reports"));
21                         $this->add_lapp_function(1, _("Purchase Orders &Inquiry"),"purchasing/inquiry/po_search_completed.php?");
22                         $this->add_lapp_function(1, _("Supplier Transaction &Inquiry"),"purchasing/inquiry/supplier_inquiry.php?");
23                         $this->add_lapp_function(1, "","");
24                         $this->add_lapp_function(1, _("Supplier Allocation &Inquiry"),"purchasing/inquiry/supplier_allocation_inquiry.php?");
25                         
26                         $this->add_rapp_function(1, _("Supplier and Purchasing &Reports"),"reporting/reports_main.php?Class=1");
27                         
28                         $this->add_module(_("Maintenance"));
29                         $this->add_lapp_function(2, _("&Suppliers"),"purchasing/manage/suppliers.php?");
30                         if (count($installed_modules) > 0)
31                         {
32                                 foreach ($installed_modules as $mod)
33                                 {
34                                         if ($mod["tab"] == "AP")
35                                                 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
36                                 }
37                         }       
38                 }
39         }
40         
41
42 ?>