test local apache version
[freeside.git] / httemplate / elements / menu.html
index 0615ff7..1bab4ef 100644 (file)
@@ -345,6 +345,7 @@ tie my %report_credits, 'Tie::IxHash',
   'Credit Report' => [ $fsurl.'search/report_cust_credit.html', 'Credit report (by employee and/or date range)' ],
   'Credit application detail' => [ $fsurl.'search/report_cust_credit_bill_pkg.html', 'Line item application detail' ],
   'Unapplied Credits' => [ $fsurl.'search/report_cust_credit.html?unapplied=1', 'Unapplied credit report (by type and/or date range)' ],
+  'Voided Credits' => [ $fsurl.'search/report_cust_credit_void.html', 'Voided credit report (by employee and/or date range)' ],
 ;
 
 tie my %report_refunds, 'Tie::IxHash',
@@ -358,10 +359,16 @@ 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' ],
+;
+
+tie my %report_commissions, 'Tie::IxHash',
   'Agent Commissions' => [ $fsurl.'search/report_agent_commission.html' ],
+  'Agent Commissions Per Package' => [ $fsurl.'search/report_agent_commission_pkg.html' ],
   'Sales Person Commissions' => [ $fsurl.'search/report_sales_commission.html' ],
-  'Sales Person Commission per package' => [ $fsurl.'search/report_sales_commission_pkg.html' ],
+  'Sales Person Commissions Per Package' => [ $fsurl.'search/report_sales_commission_pkg.html' ],
 ;
+$report_commissions{'Employee Commissions'} = [ $fsurl.'search/report_employee_commission.html', '' ]
+  if $curuser->access_right('Employees: Commission Report');
 
 tie my %report_financial, 'Tie::IxHash';
 if( $curuser->access_right('Financial reports') ) {
@@ -370,6 +377,7 @@ if( $curuser->access_right('Financial reports') ) {
     'Sales' => [ \%report_sales, 'Sales reports', ],
     'Credits' => [ \%report_credits, 'Credit reports', ],
     'Refunds' => [ \%report_refunds, 'Refund reports', ],
+    'Commissions' => [ \%report_commissions, 'Commission 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' ];