%# some overlap with report_sqlradius_usage_custnum.html <& /elements/header.html, mt($title) &>
<& /elements/tr-select-agent.html, 'multiple' => 1, 'disable_empty' => 1, #'empty_label' => 'all', &> %#more future-proof to actually ask all exports if they ->can('usage_sessions') % my @exporttypes = qw( sqlradius sqlradius_withdomain broadband_sqlradius % phone_sqlradius radiator % ); <& /elements/tr-select-table.html, 'label' => 'Export', 'table' => 'part_export', 'name_col' => 'label', 'hashref' => {}, 'extra_sql' => ' WHERE exporttype IN ( '. join(',', map "'$_'", @exporttypes). ')', 'multiple' => 1, 'order_by' => 'ORDER BY exportnum', &> <& /elements/tr-input-beginning_ending.html &> <& /elements/tr-radio.html, 'field' => 'combine_svcs', 'options' => [ 0, 1 ], 'labels' => { 0 => 'Per service', 1 => 'Per package', }, 'curr_value' => 0, &>

<& /elements/footer.html &> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Usage: RADIUS sessions'); # yes? my $title = 'Data Usage Report';