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

Kristian Hoffmann khoff at pouncequick.420.am
Thu Mar 17 13:41:40 PST 2005


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

Modified Files:
	email-invoice.cgi 
Log Message:
Added options invoice_email_pdf and invoice_email_pdf_note.
invoice_email_pdf - Attach PDF invoice to emailed plain text invoices.
invoice_email_pdf_note - Replace plain text invoice with this note, when attaching a PDF.


Index: email-invoice.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/email-invoice.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- email-invoice.cgi	3 Jun 2004 10:09:08 -0000	1.2
+++ email-invoice.cgi	17 Mar 2005 21:41:36 -0000	1.3
@@ -10,10 +10,9 @@
 die "Can't find invoice!\n" unless $cust_bill;
 
 my $error = send_email(
-  '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 ],
+  $cust_bill->generate_email(
+    'from'  => $cust_bill->_agent_invoice_from || $conf->config('invoice_from'),
+  )
 );
 eidiot($error) if $error;
 




More information about the freeside-commits mailing list