X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fmenu.html;h=651b04d2876dec76a84f1c8e5d39562b6e825e78;hb=e356f2ebb6564fe8d5333fc89bb4583ee3cd1fb1;hp=46f9a0ca6fa38ec17e7a2d22a42658f286854241;hpb=011fc73692cc02924be7f7d786a9a841d4cb2037;p=freeside.git diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 46f9a0ca6..651b04d28 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -130,6 +130,12 @@ if ( $curuser->access_right('Configuration') ) { $report_services{'Service definitions'} = [ $fsurl.'browse/part_svc.cgi?orderby=active', 'Service definitions by number of active packages' ]; $report_services{'separator'} = ''; } + +if ( $curuser->access_right('List services') ) { + $report_services{'Unprovisioned services'} = [ $fsurl.'search/report_unprovisioned_services.html', 'Unprovisioned services' ]; + $report_services{'separator2'} = ''; +} + foreach my $svcdb ( FS::part_svc->svc_tables() ) { my $name = "FS::$svcdb"->table_info->{'name_plural'} @@ -193,6 +199,8 @@ foreach my $svcdb ( FS::part_svc->svc_tables() ) { if ( $svcdb eq 'svc_phone' ) { $report_svc{"Phone number (DID) availability"} = [ $fsurl."search/report_phone_avail.html", '' ]; + $report_svc{"Inventory/Provisioning Status"} = + [ $fsurl."search/phone_inventory_provisioned.html", '' ]; } $report_services{$name} = [ \%report_svc, $longname ]; @@ -289,6 +297,7 @@ if($curuser->access_right('Financial reports')) { $report_financial{'Sales Tax Liability'} = [ $fsurl.'search/report_tax.html', 'Sales tax liability report (internal taxclass system)' ]; $report_financial{'Tax Liability'} = [ $fsurl.'search/report_newtax.html', 'Tax liability report (vendor data tax products system)' ] if $conf->exists('enable_taxproducts'); + $report_financial{'Customer Accounting Summary'} = [ $fsurl.'search/report_customer_accounting_summary.html', 'Customer accounting summary report' ]; } elsif($curuser->access_right('Receivables report')) { @@ -369,8 +378,10 @@ $tools_menu{'Quick payment entry'} = [ $fsurl.'misc/batch-cust_pay.html', 'Ente $tools_menu{'Process payment batches'} = [ $fsurl.'search/pay_batch.cgi?magic=_date;open=1;intransit=1', 'Process credit card and electronic check batches' ] if ( $conf->exists('batch-enable') || $conf->config('batch-enable_payby') ) && $curuser->access_right('Process batches'); -$tools_menu{'Process invoice batches'} = [ $fsurl.'search/bill_batch.cgi' ] +$tools_menu{'Download invoice batches'} = [ $fsurl.'search/bill_batch.cgi' ] if $conf->exists('invoice_print_pdf'); +$tools_menu{'Bulk DID Orders'} = [ $fsurl.'browse/did_order.html', 'View/manage bulk DID orders' ] + if $curuser->access_right('Import'); $tools_menu{'Job Queue'} = [ $fsurl.'search/queue.html', 'View pending job queue' ] if $curuser->access_right('Job queue'); $tools_menu{'Ticketing'} = [ \%tools_ticketing, 'Ticketing tools' ] @@ -424,6 +435,9 @@ tie my %config_cust, 'Tie::IxHash', 'Customer classes' => [ $fsurl.'browse/cust_class.html', 'Customer classes define groups of customers for reporting.' ], 'Customer categories' => [ $fsurl.'browse/cust_category.html', 'Customer categories define groups of customer classes.' ], ; + +$config_cust{'Customer note classes'} = [ $fsurl.'browse/cust_note_class.html', 'Customer note classes define groups of notes for reporting.' ] + if ($conf->exists('note-classes') && $conf->config('note-classes') > 0); tie my %config_agent, 'Tie::IxHash', 'Agent types' => [ $fsurl.'browse/agent_type.cgi', 'Agent types define groups of package definitions that you can then assign to particular agents' ], @@ -484,6 +498,7 @@ tie my %config_broadband, 'Tie::IxHash', tie my %config_phone, 'Tie::IxHash', 'View/Edit phone device types' => [ $fsurl.'browse/part_device.html', 'Phone device types' ], + 'View/Edit bulk DID vendors' => [ $fsurl.'browse/did_vendor.html', 'Bulk DID vendors' ], ; tie my %config_misc, 'Tie::IxHash'; @@ -554,15 +569,29 @@ eval "use RT;" tie my %help_menu, 'Tie::IxHash', 'Billing documentation' => [ $doc_link, 'Freeside documentation' ]; $help_menu{'Ticketing documentation'} = [ 'http://wiki.bestpractical.com/', 'Request Tracker Wiki' ] if $conf->config('ticket_system') eq 'RT_Internal'; +$help_menu{'Networking monitoring documentation'} = [ 'http://torrus.org/userguide.pod.html', 'Torrus User Guide' ] + if $conf->config('network_monitoring_system') eq 'Torrus_Internal'; $help_menu{'separator'} = ''; $help_menu{"About Freeside v$FS::VERSION"} = [ "javascript:about_freeside()", '' ]; $help_menu{"About RT v$RT::VERSION"} = [ 'http://www.bestpractical.com/rt', 'Request Tracker Homepage' ] if $conf->config('ticket_system') eq 'RT_Internal'; +$help_menu{"About Torrus v1.0.9"} = [ 'http://www.torrus.org/', 'Torrus Homepage' ] #XXX manual version + if $conf->config('network_monitoring_system') eq 'Torrus_Internal'; -tie my %menu, 'Tie::IxHash', - 'Billing Main' => [ $fsurl, 'Billing start page', ], -; +tie my %menu, 'Tie::IxHash'; + +if ( $conf->config('menu-prepend_links')) { + my @links = split(/\n/, $conf->config('menu-prepend_links')); + foreach my $link (@links) { + $link =~ /^\s*(\S+)\s+(.*?)(\s*\(([^\)]*)\))?$/ or next; + my($url, $label, $alt) = ($1, $2, $4); + $menu{$label} = [ $url, $alt ]; + } +} + +$menu{'Billing Main'} = [ $fsurl, 'Billing start page', ]; + if ( $conf->config('ticket_system') ) { $menu{'Ticketing Main'} = [ @@ -573,6 +602,12 @@ if ( $conf->config('ticket_system') ) { 'Ticketing start page', ], } + +if ( $conf->config('network_monitoring_system') eq 'Torrus_Internal' ) { + $menu{'Network Main'} = + [ $fsurl.'torrus/main', 'Network monitoring start page' ], +} + $menu{'New prospect'} = [ $fsurl.'edit/prospect_main.html', 'Add a new prospect' ] if $curuser->access_right('New prospect'); $menu{'New customer'} = [ $fsurl.'edit/cust_main.cgi', 'Add a new customer' ]