diff options
author | khoff <khoff> | 2005-03-17 21:41:36 +0000 |
---|---|---|
committer | khoff <khoff> | 2005-03-17 21:41:36 +0000 |
commit | 821c540a2d41f633b1a4e1cd8bda82b8b2ff60de (patch) | |
tree | 3ef10964b7b91d479cfd20192e110a5db6da48ed /httemplate/misc/email-invoice.cgi | |
parent | 2d40f813c0153cfa2840eb7e218760623d88f55d (diff) |
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.
Diffstat (limited to 'httemplate/misc/email-invoice.cgi')
-rwxr-xr-x | httemplate/misc/email-invoice.cgi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/httemplate/misc/email-invoice.cgi b/httemplate/misc/email-invoice.cgi index a560a18..a3130c7 100755 --- a/httemplate/misc/email-invoice.cgi +++ b/httemplate/misc/email-invoice.cgi @@ -10,10 +10,9 @@ my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum}); 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; |