From b0384b979bec6846b4ad1e339140f4877e9c2a9c Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 2 Nov 2005 21:18:17 +0000 Subject: [PATCH] spool invoice to billco if no other destinations are set! --- FS/FS/cust_bill.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.11.0