diff options
author | Ivan Kohler <ivan@freeside.biz> | 2020-04-27 12:59:08 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2020-04-27 12:59:08 -0700 |
commit | 4639e25a658d9a0bf295415642fae8e8cdad846a (patch) | |
tree | 7a1973879a6bcaac7e5f83e905b65c1d80f78913 /httemplate/search | |
parent | 7b0bbc4117a7959b9f7b7b2cf999b8188ba34160 (diff) |
search svc_acct by service def
Diffstat (limited to 'httemplate/search')
-rwxr-xr-x | httemplate/search/report_svc_acct.html | 2 | ||||
-rwxr-xr-x | httemplate/search/svc_acct.cgi | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/search/report_svc_acct.html b/httemplate/search/report_svc_acct.html index 3b8e464..711905a 100755 --- a/httemplate/search/report_svc_acct.html +++ b/httemplate/search/report_svc_acct.html @@ -69,6 +69,8 @@ <& /elements/tr-selectmultiple-part_pkg.html &> + <& /elements/tr-select-part_svc.html, svcdb=>'svc_acct' &> + % my $conf = new FS::Conf; % if ( $conf->exists('svc_acct-tower_sector') % and FS::tower_sector->count > 0 ) { diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index ecf37b4..7f423d5 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -254,6 +254,8 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) { $search_hash{'pkgpart'} = [ $cgi->param('pkgpart') ]; + $search_hash{'svcpart'} = [ $cgi->param('svcpart') ]; + foreach my $field (qw( last_login last_logout )) { my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, $field); |