projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
78e7919
)
eek, fix silly problem in invoice sending refactoring
author
ivan
<ivan>
Mon, 6 Jun 2005 20:07:19 +0000
(20:07 +0000)
committer
ivan
<ivan>
Mon, 6 Jun 2005 20:07:19 +0000
(20:07 +0000)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
888687e
..
f090978
100644
(file)
--- 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;
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;
if grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list or !@invoicing_list;
- $self->
send_
print($template)
+ $self->print($template)
if grep { $_ eq 'POST' } @invoicing_list; #postal
if grep { $_ eq 'POST' } @invoicing_list; #postal
- $self->
send_
fax($template)
+ $self->fax($template)
if grep { $_ eq 'FAX' } @invoicing_list; #fax
'';
if grep { $_ eq 'FAX' } @invoicing_list; #fax
'';