X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_tax_exempt_pkg.cgi;h=3a5155ae8d096a298f2a8b069aed84c4fcb0d1a3;hb=c4b71bc4459cb7d403cbebede470aeb2c6292a6e;hp=990e344b7dc575bfbea5e12535445c2e061f4d71;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git diff --git a/httemplate/search/cust_tax_exempt_pkg.cgi b/httemplate/search/cust_tax_exempt_pkg.cgi index 990e344b7..3a5155ae8 100644 --- a/httemplate/search/cust_tax_exempt_pkg.cgi +++ b/httemplate/search/cust_tax_exempt_pkg.cgi @@ -54,9 +54,29 @@ $ilink, $ilink, - ( map { $clink } FS::UI::Web::cust_header() ), + ( map { $_ ne 'Cust. Status' ? $clink : '' } + FS::UI::Web::cust_header() + ), ], - 'align' => 'rrrlrc', # 'rlrrrc', + 'align' => 'rrrlrc'.FS::UI::Web::cust_aligns(), # 'rlrrrc', + 'color' => [ + '', + '', + '', + '', + '', + '', + FS::UI::Web::cust_colors(), + ], + 'style' => [ + '', + '', + '', + '', + '', + '', + FS::UI::Web::cust_styles(), + ], ) %> <%once> @@ -80,6 +100,9 @@ my $join = " <%init> +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('View customer tax exemptions'); + my @where = (); my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi); @@ -90,7 +113,7 @@ if ( $beginning || $ending ) { } if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { - push @where, "agentnum = $1"; + push @where, "cust_main.agentnum = $1"; } if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {