X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fmenu.html;h=f558777b5ace6fc34b67bfa5a57b7c52967de02f;hb=849a709d89e78bec1ab19997b75de1b574969f1f;hp=d0741596b70725312f86413ff8991d083f609af5;hpb=f4f7bb4086cdaf2699c6d028b76e99b3e9be1e90;p=freeside.git diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index d0741596b..f558777b5 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -140,7 +140,7 @@ foreach my $svcdb ( FS::part_svc->svc_tables() ) { my $name = "FS::$svcdb"->table_info->{'name_plural'} || PL( "FS::$svcdb"->table_info->{'name'} ); - my $lcname = lc($name); + my $lcname = "FS::$svcdb"->table_info->{'lcname_plural'} || lc($name); my $lcsname = lc("FS::$svcdb"->table_info->{'name'}); my $longname = "FS::$svcdb"->table_info->{'longname_plural'} || $name; my $lclongname = lc($longname); @@ -191,16 +191,24 @@ foreach my $svcdb ( FS::part_svc->svc_tables() ) { ]; } - if ( $svcdb eq 'svc_acct' || $svcdb eq 'svc_broadband' ) { + if ( $svcdb =~ /^svc_(acct|broadband|hardware)$/ ) { $report_svc{"Advanced $lcsname reports"} = [ $fsurl."search/report_$svcdb.html", '' ]; } 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", '' ]; + + } elsif ( $svcdb eq 'svc_dsl' ) { + + $report_svc{'Qualifications'} = [ $fsurl. 'search/qual.cgi', #XXX qual.html + '', + ]; + } $report_services{$name} = [ \%report_svc, $longname ]; @@ -524,6 +532,9 @@ $config_misc{'Inventory classes and inventory'} = [ $fsurl.'browse/inventory_cla || $curuser->access_right('Edit global inventory') || $curuser->access_right('Configuration'); +$config_misc{'Hardware types'} = [ $fsurl.'browse/hardware_class.html', 'Set up hardware type catalog' ] + if $curuser->access_right('Configuration'); + tie my %config_menu, 'Tie::IxHash'; if ( $curuser->access_right('Configuration' ) ) { %config_menu = (