search svc_acct by service def
authorIvan Kohler <ivan@freeside.biz>
Mon, 27 Apr 2020 19:59:08 +0000 (12:59 -0700)
committerIvan Kohler <ivan@freeside.biz>
Mon, 27 Apr 2020 19:59:08 +0000 (12:59 -0700)
httemplate/elements/tr-select-part_svc.html
httemplate/search/report_svc_acct.html
httemplate/search/svc_acct.cgi

index 959ac8d..efe18a0 100644 (file)
@@ -5,7 +5,7 @@
 % } else { 
 
   <TR>
 % } else { 
 
   <TR>
-    <TD ALIGN="right"><% $opt{'label'} || 'Service definition' %></TD>
+    <TH ALIGN="right"><% $opt{'label'} || 'Service definition' %></TH>
     <TD>
       <% include( '/elements/select-part_svc.html',
                     'multiple' => 1,
     <TD>
       <% include( '/elements/select-part_svc.html',
                     'multiple' => 1,
index 3b8e464..711905a 100755 (executable)
@@ -69,6 +69,8 @@
     
     <& /elements/tr-selectmultiple-part_pkg.html &> 
 
     
     <& /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 ) {
 %   my $conf = new FS::Conf;
 %   if ( $conf->exists('svc_acct-tower_sector') 
 %        and FS::tower_sector->count > 0 ) {
index ecf37b4..7f423d5 100755 (executable)
@@ -254,6 +254,8 @@ if ( $cgi->param('magic') =~ /^(all|unlinked)$/ ) {
 
   $search_hash{'pkgpart'} = [ $cgi->param('pkgpart') ];
 
 
   $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);
   foreach my $field (qw( last_login last_logout )) {
 
     my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, $field);