RT# 76309 - Updated 3 email notices to use more billing event types
authorChristopher Burger <burgerc@freeside.biz>
Thu, 13 Jul 2017 19:35:32 +0000 (15:35 -0400)
committerChristopher Burger <burgerc@freeside.biz>
Thu, 13 Jul 2017 19:35:32 +0000 (15:35 -0400)
FS/FS/part_event/Action/cust_bill_send_with_notice.pm
FS/FS/part_event/Action/notice.pm
FS/FS/part_event/Action/notice_to.pm

index d2678fd..efaa035 100644 (file)
@@ -8,7 +8,15 @@ use MIME::Entity;
 sub description { 'Email a notice to the customer with invoice attached'; }
 
 sub eventtable_hashref {
-  { 'cust_bill' => 1 };
+    {
+      'cust_main'      => 1,
+      'cust_bill'      => 1,
+      'cust_pkg'       => 1,
+      'cust_pay'       => 1,
+      'cust_pay_batch' => 1,
+      'cust_statement' => 1,
+      'svc_acct'       => 1,
+    };
 }
 
 sub option_fields {
index 7c8ed16..4dd3933 100644 (file)
@@ -7,12 +7,17 @@ use FS::msg_template;
 
 sub description { 'Email a notice to the customer\'s billing address'; }
 
-#sub eventtable_hashref {
-#    { 'cust_main' => 1,
-#      'cust_bill' => 1,
-#      'cust_pkg'  => 1,
-#    };
-#}
+sub eventtable_hashref {
+    {
+      'cust_main'      => 1,
+      'cust_bill'      => 1,
+      'cust_pkg'       => 1,
+      'cust_pay'       => 1,
+      'cust_pay_batch' => 1,
+      'cust_statement' => 1,
+      'svc_acct'       => 1,
+    };
+}
 
 sub option_fields {
   (
index d300e33..dee293b 100644 (file)
@@ -7,12 +7,17 @@ use FS::msg_template;
 
 sub description { 'Email a notice to a specific address'; }
 
-#sub eventtable_hashref {
-#    { 'cust_main' => 1,
-#      'cust_bill' => 1,
-#      'cust_pkg'  => 1,
-#    };
-#}
+sub eventtable_hashref {
+    {
+      'cust_main'      => 1,
+      'cust_bill'      => 1,
+      'cust_pkg'       => 1,
+      'cust_pay'       => 1,
+      'cust_pay_batch' => 1,
+      'cust_statement' => 1,
+      'svc_acct'       => 1,
+    };
+}
 
 sub option_fields {
   (