X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2F477partIIA.html;h=7ccee692865b847e942232184c192317400bb840;hb=36d3a1f27ef9c801f4fb9a0189bde93f417e1a88;hp=907a176e5783fb907d00816cdb24abf083a3bf7a;hpb=ca76f8dfa059fc73a73b687339da9fcd038db0f6;p=freeside.git diff --git a/httemplate/search/477partIIA.html b/httemplate/search/477partIIA.html index 907a176e5..7ccee6928 100755 --- a/httemplate/search/477partIIA.html +++ b/httemplate/search/477partIIA.html @@ -2,11 +2,9 @@ % my @cols = qw(a b c d); % for ( my $row = 0; $row < scalar(@rows); $row++ ) { % for my $col (0..3) { -% if ( exists($data[$col][$row]) and $data[$col][$row] > 0 ) { <% $cols[$col] %>>\ -<% $data[$col][$row] %>\ +<% $data[$col][$row] || 0 %>\ <% $cols[$col] %>> -% } % } #for $col % } #for $row % } else { # HTML mode @@ -40,25 +38,25 @@ % } #XML/HTML <%init> - my $curuser = $FS::CurrentUser::CurrentUser; die "access denied" unless $curuser->access_right('List packages'); +my %opt = @_; my %search_hash = (); $search_hash{'agentnum'} = $cgi->param('agentnum'); $search_hash{'state'} = $cgi->param('state'); $search_hash{'classnum'} = [ $cgi->param('classnum') ]; -$search_hash{'status'} = 'active'; +$search_hash{'active'} = [ $opt{date}, $opt{date} ]; my @row_option; foreach ($cgi->param('part2a_row_option')) { push @row_option, (/^\d+$/ ? $_ : undef); } -my $is_residential = "AND COALESCE(cust_main.company, '') = ''"; +my $is_residential = " AND COALESCE(cust_main.company, '') = ''"; my $has_report_option = sub { map { defined($row_option[$_]) ?