X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fsuppliers.php;h=f7c529e5de173f714ec353d78f6629f752b6e6d1;hb=d497aeb2d93ed1c705007fa6ff84a4c470f7f538;hp=83c6d5279fec4d9f790ce5b13a6de68b3dae0bba;hpb=cb8cf10b735342399abfce9384565a7474b92947;p=fa-stable.git diff --git a/applications/suppliers.php b/applications/suppliers.php index 83c6d527..f7c529e5 100644 --- a/applications/suppliers.php +++ b/applications/suppliers.php @@ -1,38 +1,46 @@ . +***********************************************************************/ class suppliers_app extends application { function suppliers_app() { - global $installed_modules; - $this->application("AP",_("Purchases")); + global $installed_extensions; + $this->application("AP",_("&Purchases")); $this->add_module(_("Transactions")); - $this->add_lapp_function(0, _("Purchase Order Entry"),"purchasing/po_entry_items.php?NewOrder=Yes"); - $this->add_lapp_function(0, _("Outstanding Purchase Orders Maintenance"),"purchasing/inquiry/po_search.php?"); - $this->add_rapp_function(0, _("Payments to Suppliers"),"purchasing/supplier_payment.php?"); + $this->add_lapp_function(0, _("Purchase &Order Entry"),"purchasing/po_entry_items.php?NewOrder=Yes"); + $this->add_lapp_function(0, _("&Outstanding Purchase Orders Maintenance"),"purchasing/inquiry/po_search.php?"); + $this->add_rapp_function(0, _("&Payments to Suppliers"),"purchasing/supplier_payment.php?"); $this->add_rapp_function(0, "",""); - $this->add_rapp_function(0, _("Supplier Invoices"),"purchasing/supplier_invoice.php?New=1"); - $this->add_rapp_function(0, _("Supplier Credit Notes"),"purchasing/supplier_credit.php?New=1"); - $this->add_rapp_function(0, _("Allocate Supplier Payments or Credit Notes"),"purchasing/allocations/supplier_allocation_main.php?"); + $this->add_rapp_function(0, _("Supplier &Invoices"),"purchasing/supplier_invoice.php?New=1"); + $this->add_rapp_function(0, _("Supplier &Credit Notes"),"purchasing/supplier_credit.php?New=1"); + $this->add_rapp_function(0, _("&Allocate Supplier Payments or Credit Notes"),"purchasing/allocations/supplier_allocation_main.php?"); $this->add_module(_("Inquiries and Reports")); - $this->add_lapp_function(1, _("Purchase Orders Inquiry"),"purchasing/inquiry/po_search_completed.php?"); - $this->add_lapp_function(1, _("Supplier Transaction Inquiry"),"purchasing/inquiry/supplier_inquiry.php?"); + $this->add_lapp_function(1, _("Purchase Orders &Inquiry"),"purchasing/inquiry/po_search_completed.php?"); + $this->add_lapp_function(1, _("Supplier Transaction &Inquiry"),"purchasing/inquiry/supplier_inquiry.php?"); $this->add_lapp_function(1, "",""); - $this->add_lapp_function(1, _("Supplier Allocation Inquiry"),"purchasing/inquiry/supplier_allocation_inquiry.php?"); + $this->add_lapp_function(1, _("Supplier Allocation &Inquiry"),"purchasing/inquiry/supplier_allocation_inquiry.php?"); - $this->add_rapp_function(1, _("Supplier and Purchasing Reports"),"reporting/reports_main.php?Class=1"); + $this->add_rapp_function(1, _("Supplier and Purchasing &Reports"),"reporting/reports_main.php?Class=1"); $this->add_module(_("Maintenance")); - $this->add_lapp_function(2, _("Suppliers"),"purchasing/manage/suppliers.php?"); - if (count($installed_modules) > 0) + $this->add_lapp_function(2, _("&Suppliers"),"purchasing/manage/suppliers.php?"); + if (count($installed_extensions) > 0) { - foreach ($installed_modules as $mod) + foreach ($installed_extensions as $mod) { - if ($mod["tab"] == "AP") - $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?"); + if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "AP") + $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?"); } } }