add dsl, circuit and fiber services to email and RT ticket exports, RT#84345
[freeside.git] / FS / FS / part_export / send_email.pm
index 05f6236..a54fa16 100644 (file)
@@ -6,7 +6,6 @@ use FS::part_export;
 use FS::Record qw(qsearch qsearchs);
 use FS::Conf;
 use FS::msg_template;
-use FS::Misc qw(send_email);
 
 @ISA = qw(FS::part_export);
 
@@ -18,12 +17,13 @@ my %template_select = (
     $templates{$_[0]};
   },
   option_values => sub {
-    %templates = (0 => '',
+    %templates = (
+      0 => '',
       map { $_->msgnum, $_->msgname } 
-      qsearch({ table => 'msg_template',
-                hashref => {},
-                order_by => 'ORDER BY msgnum ASC'
-              })
+        qsearch({ table    => 'msg_template',
+                  hashref  => { disabled => '', },
+                  order_by => 'ORDER BY msgnum ASC'
+                })
     );
     sort keys (%templates);
   },
@@ -80,11 +80,14 @@ tie my %options, 'Tie::IxHash', (
 );
 
 %info = (
-  'svc'      => [qw( svc_acct svc_broadband svc_phone svc_domain )],
+  'svc'      => [qw( svc_acct svc_hardware svc_broadband svc_phone svc_domain
+                     svc_dsl svc_circuit svc_fiber
+                )],
   'desc'     =>
   'Send an email message',
   'options'  => \%options,
   'nodomain' => '',
+  'no_machine' => 1,
   'notes'    => ' 
   Send an email message.  The subject and body of the message
   will be generated from a message template.'