X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_sqlradius_usage.html;h=38d52e5310a36a4d6ba272384396c8852f8b9d5b;hp=01215e83425e949de7d76b7117d4ee06d31d2c91;hb=ade06c71a2159e9079951c00662843455b01a5d8;hpb=0af38652da3b3be7da2d35b048285ef6f2194e1a diff --git a/httemplate/search/report_sqlradius_usage.html b/httemplate/search/report_sqlradius_usage.html index 01215e834..38d52e531 100644 --- a/httemplate/search/report_sqlradius_usage.html +++ b/httemplate/search/report_sqlradius_usage.html @@ -1,20 +1,28 @@ +%# some overlap with report_sqlradius_usage_custnum.html <& /elements/header.html, mt($title) &>
- <& /elements/tr-select-agent.html, - 'empty_label' => 'all', + 'multiple' => 1, + 'disable_empty' => 1, + #'empty_label' => 'all', &> -% my @exporttypes = map { "'$_'" } qw(sqlradius broadband_sqlradius); +%#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(',', @exporttypes).')', + 'extra_sql' => ' WHERE exporttype IN ( '. + join(',', map "'$_'", @exporttypes). + ')', 'disable_empty' => 1, 'order_by' => 'ORDER BY exportnum', &>