X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fmenu.html;h=4ba7b2f000b7a6c8bbe01b12f5797e95bf68310e;hb=afe30fc7315196cc4ae6da7606995cb8388d1a32;hp=99f5e11687a00740b532b9a0593bc7e5b835da5b;hpb=863a22e44d49481109c956b0a0533b6672e3ca93;p=freeside.git diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 99f5e1168..4ba7b2f00 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -298,13 +298,6 @@ tie my %report_ticketing, 'Tie::IxHash', 'Advanced ticket reports' => [ $fsurl.'rt/Search/Build.html?NewQuery=1', 'List tickets by any criteria' ], ; -tie my %report_employees, 'Tie::IxHash'; -$report_employees{'Employee Commission Report'} = [ $fsurl.'search/report_employee_commission.html', '' ] - if $curuser->access_right('Employees: Commission Report'); -$report_employees{'Employee Audit Report'} = [ $fsurl.'search/report_employee_audit.html', 'Employee audit report' ] - if $curuser->access_right('Employees: Audit Report'); -; - tie my %report_bill_event, 'Tie::IxHash', 'All billing events' => [ $fsurl.'search/report_cust_event.html', 'All billing events for a date range' ], 'Billing event errors' => [ $fsurl.'search/report_cust_event.html?failed=1', 'Failed credit cards, processor or printer problems, etc.' ], @@ -343,17 +336,23 @@ tie my %report_sales, 'Tie::IxHash', 'Sales Report' => [ $fsurl.'graph/report_cust_bill_pkg.html', 'Sales report and graph (by agent, package class and/or date range)' ], 'Rated Call Sales Report' => [ $fsurl.'graph/report_cust_bill_pkg_detail.html', 'Sales report and graph (by agent, package class, usage class and/or date range)' ], 'Sales with Advertising Source' => [ $fsurl.'search/report_cust_bill_pkg_referral.html' ], - 'Agent Commissions' => [ $fsurl.'search/report_agent_commission.html' ], - 'Sales Person Commissions' => [ $fsurl.'search/report_sales_commission.html' ], +; + +tie my %report_commissions, 'Tie::IxHash', + 'Agent' => [ $fsurl.'search/report_agent_commission.html' ], + 'Sales Person' => [ $fsurl.'search/report_sales_commission.html' ], + 'Sales Person per package' => [ $fsurl.'search/report_sales_commission_pkg.html' ], + 'Employee' => [ $fsurl.'search/report_employee_commission.html', '' ] ; tie my %report_financial, 'Tie::IxHash'; if( $curuser->access_right('Financial reports') ) { %report_financial = ( - 'Sales' => [ \%report_sales, 'Sales reports', ], - 'Credits' => [ \%report_credits, 'Credit reports', ], - 'Refunds' => [ \%report_refunds, 'Refund reports', ], + 'Sales' => [ \%report_sales, 'Sales reports', ], + 'Commissions' => [ \%report_commissions, 'Commission reports', ], + 'Credits' => [ \%report_credits, 'Credit reports', ], + 'Refunds' => [ \%report_refunds, 'Refund reports', ], ); $report_financial{'A/R Aging'} = [ $fsurl.'search/report_receivables.html', 'Accounts Receivable Aging report' ]; $report_financial{'Prepaid Income'} = [ $fsurl.'search/report_prepaid_income.html', 'Prepaid income (unearned revenue) report' ]; @@ -379,10 +378,16 @@ tie my %report_payable, 'Tie::IxHash', ; tie my %report_logs, 'Tie::IxHash'; - $report_logs{'System log'} = [ $fsurl.'search/log.html', 'View system events and debugging information.' ], +$report_logs{'Billing events'} = [ \%report_bill_event, 'Billing events' ] + if $curuser->access_right('Billing event reports'); +$report_logs{'Credit limit incidents'} = [ $fsurl.'search/report_cust_main_credit_limit.html', '' ] + if $curuser->access_right('List rating data'); +$report_logs{'Employee activity'} = [ $fsurl.'search/report_employee_audit.html', '' ] + if $curuser->access_right('Employees: Audit Report'); +$report_logs{'System log'} = [ $fsurl.'search/log.html', 'View system events and debugging information.' ], if $curuser->access_right('View system logs') || $curuser->access_right('Configuration'); - $report_logs{'Outgoing messages'} = [ $fsurl.'search/cust_msg.html', 'View outgoing message log' ] +$report_logs{'Outgoing messages'} = [ $fsurl.'search/cust_msg.html', 'View outgoing message log' ] if $curuser->access_right('View email logs') || $curuser->access_right('Configuration'); @@ -410,10 +415,6 @@ $report_menu{'Usage'} = [ \%report_rating, 'Usage reports' ] $report_menu{'Tickets'} = [ \%report_ticketing, 'Ticket reports' ] if $conf->config('ticket_system') ;#&& FS::TicketSystem->access_right(\%session, 'Something'); -$report_menu{'Employees'} = [ \%report_employees, 'Employee reports' ] - if keys %report_employees; -$report_menu{'Billing events'} = [ \%report_bill_event, 'Billing events' ] - if $curuser->access_right('Billing event reports'); $report_menu{'Financial (Receivables)'} = [ \%report_financial, 'Financial reports (Receivables)' ] if $curuser->access_right('Financial reports') or $curuser->access_right('Receivables report'); @@ -583,6 +584,10 @@ if ( $curuser->access_right('Configuration') ) { $config_pkg{'Package report classes'} = [ $fsurl.'browse/part_pkg_report_option.html', 'Package classes define optional groups of packages for reporting only.' ]; #eo package grouping sub-menu + if ( $curuser->access_right([ 'Edit fee definitions', + 'Edit global fee definitions' ]) ) { + $config_pkg{'Fees'} = [ $fsurl.'browse/part_fee.html', '' ]; + } $config_pkg{'Discounts'} = [ $fsurl.'browse/discount.html', '' ]; $config_pkg{'Discount classes'} = [ $fsurl.'browse/discount_class.html', '' ]; $config_pkg{'Cancel/Suspend Reasons'} = [ \%config_pkg_reason, '' ]; @@ -651,6 +656,10 @@ if ( $curuser->access_right('Configuration') ) { $config_billing{'separator4'} = ''; #its a separator! $config_billing{'Credit reasons'} = [ $fsurl.'browse/reason.html?class=R', 'Credit reasons explain why a credit was issued.' ]; $config_billing{'Credit reason types'} = [ $fsurl.'browse/reason_type.html?class=R', 'Credit reason types define groups of reasons.' ]; + + $config_billing{'separator5'} = ''; #its a separator! + $config_billing{'Refund reasons'} = [ $fsurl.'browse/reason.html?class=F', 'Refund reasons explain why a refund was issued.' ]; + $config_billing{'Refund reason types'} = [ $fsurl.'browse/reason_type.html?class=F', 'Refund reason types define groups of reasons.' ]; } #XXX also to be unified