[freeside-commits] freeside/FS/FS msg_template.pm,1.11,1.12

Mark Wells mark at wavetail.420.am
Wed Sep 22 16:04:33 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv1065/FS/FS

Modified Files:
	msg_template.pm 
Log Message:
event action to send a notice to a fixed address, RT#8209

Index: msg_template.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/msg_template.pm,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- msg_template.pm	1 Sep 2010 18:44:15 -0000	1.11
+++ msg_template.pm	22 Sep 2010 23:04:31 -0000	1.12
@@ -168,6 +168,11 @@
 Additional context object (currently, can be a cust_main, cust_pkg, 
 cust_bill, svc_acct, cust_pay, or cust_pay_pending object).
 
+=item to
+
+Destination address.  The default is to use the customer's 
+invoicing_list addresses.
+
 =back
 
 =cut
@@ -247,7 +252,7 @@
   # and email
   ###
 
-  my @to = $cust_main->invoicing_list_emailonly;
+  my @to = ($opt{'to'}) || $cust_main->invoicing_list_emailonly;
   warn "prepared msg_template with no email destination (custnum ".
     $cust_main->custnum.")\n"
     if !@to;
@@ -311,6 +316,7 @@
       num_cancelled_pkgs num_ncancelled_pkgs num_pkgs
       classname categoryname
       balance
+      credit_limit
       invoicing_list_emailonly
       cust_status ucfirst_cust_status cust_statuscolor
 



More information about the freeside-commits mailing list