From 3f1156eaf4fa5316e4f88680d288c278363cab87 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 19 May 2011 00:10:18 +0000 Subject: [PATCH] better menu entries for tax reports --- httemplate/elements/menu.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index b5d48a7cb..3523f0a7d 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -319,9 +319,12 @@ if($curuser->access_right('Financial 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' ]; - $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'); + + my $taxproducts = $conf->exists('enable_taxproducts'); + $report_financial{'Tax Liability'. ($taxproducts ? ' (internal tax data)' : '')} = [ $fsurl.'search/report_tax.html', 'Tax liability report (internal tax data)' ]; + $report_financial{'Tax Liability (vendor tax data)'} = [ $fsurl.'search/report_newtax.html', 'Tax liability report (vendor tax data)' ] + if $taxproducts; + $report_financial{'Customer Accounting Summary'} = [ $fsurl.'search/report_customer_accounting_summary.html', 'Customer accounting summary report' ]; } elsif($curuser->access_right('Receivables report')) { -- 2.20.1