From: ivan Date: Mon, 6 Jun 2005 20:07:19 +0000 (+0000) Subject: eek, fix silly problem in invoice sending refactoring X-Git-Tag: BEFORE_FINAL_MASONIZE~488 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9ed67fdc938dbd9034c49cf11f7cb0b727d53bae eek, fix silly problem in invoice sending refactoring --- diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 888687e68..f090978ca 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -568,13 +568,13 @@ sub send { my @invoicing_list = $self->cust_main->invoicing_list; - $self->send_email($template, $invoice_from) + $self->email($template, $invoice_from) if grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list or !@invoicing_list; - $self->send_print($template) + $self->print($template) if grep { $_ eq 'POST' } @invoicing_list; #postal - $self->send_fax($template) + $self->fax($template) if grep { $_ eq 'FAX' } @invoicing_list; #fax '';