From: ivan Date: Wed, 2 Nov 2005 21:18:17 +0000 (+0000) Subject: spool invoice to billco if no other destinations are set! X-Git-Tag: BEFORE_FINAL_MASONIZE~328 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=b0384b979bec6846b4ad1e339140f4877e9c2a9c spool invoice to billco if no other destinations are set! --- diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 478faccf6..0cfe5c982 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -838,7 +838,8 @@ sub spool_csv { if ( $opt{'dest'} ) { my %invoicing_list = map { /^(POST|FAX)$/ or 'EMAIL' =~ /^(.*)$/; $1 => 1 } $self->cust_main->invoicing_list; - return unless $invoicing_list{$opt{'dest'}}; + return 'N/A' unless $invoicing_list{$opt{'dest'}} + || ! keys %invoicing_list; } #create file(s)