freeside/httemplate/misc email-invoice.cgi,1.1,1.2

ivan ivan at pouncequick.420.am
Thu Jun 3 03:09:11 PDT 2004


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory pouncequick:/tmp/cvs-serv27177

Modified Files:
	email-invoice.cgi 
Log Message:
also fix agent-specific From: address on "re-email" link

Index: email-invoice.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/email-invoice.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- email-invoice.cgi	12 Feb 2004 06:31:37 -0000	1.1
+++ email-invoice.cgi	3 Jun 2004 10:09:08 -0000	1.2
@@ -10,7 +10,7 @@
 die "Can't find invoice!\n" unless $cust_bill;
 
 my $error = send_email(
-  'from'    => $conf->config('invoice_from'),
+  'from'    => $cust_bill->_agent_invoice_from || $conf->config('invoice_from'),
   'to'      => [ grep { $_ ne 'POST' } $cust_bill->cust_main->invoicing_list ],
   'subject' => 'Invoice',
   'body'    => [ $cust_bill->print_text ],




More information about the freeside-commits mailing list