diff options
author | ivan <ivan> | 2005-11-02 21:18:17 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-11-02 21:18:17 +0000 |
commit | b0384b979bec6846b4ad1e339140f4877e9c2a9c (patch) | |
tree | 42dc5c236e7284dccea0ec550b3fa9b569d5a49c | |
parent | 05084b73bfd5e251d18fcff779651a9bab9406ba (diff) |
spool invoice to billco if no other destinations are set!
-rw-r--r-- | FS/FS/cust_bill.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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) |