- my @invoices = sort { $a->invnum <=> $b->invnum } $self->cust_bill_batch;
- return "No invoices in batch ".$self->batchnum.'.' if !@invoices;
+ my @cust_bill_batch = sort { $a->invnum <=> $b->invnum }
+ $self->cust_bill_batch;
+ return "No invoices in batch ".$self->batchnum.'.' if !@cust_bill_batch;
+
+ my $conf = FS::Conf->new;
+ my $duplex = $conf->exists('invoice_print_pdf-duplex');