X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_tax_exempt.cgi;h=3704b208aab813282c646982ae190b9f17a2be14;hb=636dd1f25af52d35efe7a323a5765ff5adeadf83;hp=b77cd0e8b1fca6165861dea1e4590825cfc57401;hpb=6070fba0aeb4e5beb103f7f5545bd21096bccbe3;p=freeside.git diff --git a/httemplate/search/cust_tax_exempt.cgi b/httemplate/search/cust_tax_exempt.cgi index b77cd0e8b..3704b208a 100644 --- a/httemplate/search/cust_tax_exempt.cgi +++ b/httemplate/search/cust_tax_exempt.cgi @@ -7,31 +7,31 @@ 'header' => [ '#', 'Month', + 'Inserted', 'Amount', - 'Date', FS::UI::Web::cust_header(), ], 'fields' => [ - 'exemptpkgnum', + 'exemptnum', sub { $_[0]->month. '/'. $_[0]->year; }, + sub { my $h = $_[0]->h_search('insert'); + $h ? time2str('%L/%d/%Y', $h->history_date ) : '' + }, sub { $money_char. $_[0]->amount; }, - sub { time2str('%b %d %Y', shift->_date ) }, - \&FS::UI::Web::cust_fields, ], 'links' => [ '', '', '', - '', ( map { $_ ne 'Cust. Status' ? $clink : '' } FS::UI::Web::cust_header() ), ], - 'align' => 'rrrlrc'.FS::UI::Web::cust_aligns(), # 'rlrrrc', + 'align' => 'rrrr'.FS::UI::Web::cust_aligns(), 'color' => [ '', '', @@ -59,12 +59,12 @@ die "access denied" my @where = (); -my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi); -if ( $beginning || $ending ) { - push @where, "_date >= $beginning", - "_date <= $ending"; - #"payby != 'COMP'; -} +#my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi); +#if ( $beginning || $ending ) { +# push @where, "_date >= $beginning", +# "_date <= $ending"; +# #"payby != 'COMP'; +#} if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { push @where, "agentnum = $1"; @@ -74,6 +74,13 @@ if ( $cgi->param('custnum') =~ /^(\d+)$/ ) { push @where, "cust_main.custnum = $1"; } +#prospect active inactive suspended cancelled +if ( grep { $cgi->param('status') eq $_ } FS::cust_main->statuses() ) { + my $method = $cgi->param('status'). '_sql'; + #push @where, $class->$method(); + push @where, FS::cust_main->$method(); +} + if ( $cgi->param('out') ) { push @where, "