From: Mark Wells Date: Thu, 18 Apr 2013 23:45:53 +0000 (-0700) Subject: option to show district on 2.3 tax report, #22137 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=59009ed79364284a270477255e7417667a801866 option to show district on 2.3 tax report, #22137 --- diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi index 248f6c5e4..120768d3b 100755 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -752,7 +752,12 @@ sub getlabel { $label = $r->country; $label = $r->state.", $label" if $r->state; $label = $r->county." county, $label" if $r->county; - $label = $r->city. ", $label" if $r->city && $cgi->param('show_cities'); + if ( $cgi->param('show_cities') and $r->city ) { + $label = $r->city . ", $label"; + if ( $cgi->param('show_districts') and $r->district ) { + $label = '#' . $r->district . ", $label"; + } + } $label = "$label (". $r->taxclass. ")" if $r->taxclass && $cgi->param('show_taxclasses') diff --git a/httemplate/search/report_tax.html b/httemplate/search/report_tax.html index 2ab0e0b2e..8a207aafb 100755 --- a/httemplate/search/report_tax.html +++ b/httemplate/search/report_tax.html @@ -34,9 +34,21 @@ % if ( $city ) { - + Show cities + + + Show districts + + % } % if ( $conf->exists('enable_taxclasses') ) {