<% include('/elements/header.html', $title ) %>
% unless ( $custnum ) { <% include( '/elements/tr-select-agent.html', 'curr_value' => scalar( $cgi->param('agentnum') ), 'disable_empty' => 0, ) %> % # just this customer's domains? <% include( '/elements/tr-select-domain.html', 'element_name' => 'domsvc', 'curr_value' => scalar( $cgi->param('domsvc') ), 'disable_empty' => 0, ) %> % } % foreach my $field (qw( last_login last_logout )) { % my $invert = $field."_invert"; % } <% include( '/elements/tr-selectmultiple-part_pkg.html' ) %> % #move to /elements/tr-select-cust_pkg-fields if anything else needs it... <% include( '/elements/tr-select-cust-fields.html' ) %>
Search options
"> <% $label{$field} %> Invert
<% include( '/elements/tr-input-beginning_ending.html', prefix => $field, layout => 'horiz', ) %>
 
Display options
Package fields

<% include('/elements/footer.html') %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('List packages'); #? my $title = 'Account Report'; #false laziness w/report_cust_pkg.html my $custnum = ''; if ( $cgi->param('custnum') =~ /^(\d+)$/ ) { $custnum = $1; my $cust_main = qsearchs({ 'table' => 'cust_main', 'hashref' => { 'custnum' => $custnum }, 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql, }) or die "unknown custnum $custnum"; $title .= ': '. $cust_main->name; } <%once> my %label = ( 'last_login' => 'Last login', 'last_logout' => 'Last logout', );