summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2011-01-20 03:58:36 +0000
committermark <mark>2011-01-20 03:58:36 +0000
commit58a94ef42f0f3fcf23da5ebefe6ed12036e308c1 (patch)
tree4f9ea9ce3ee47795434abdd5a27b5d5706078d3c
parentee89293005890426307ab428a16e5c6132465bbe (diff)
load CAM::PDF on startup
-rw-r--r--FS/FS/bill_batch.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/FS/FS/bill_batch.pm b/FS/FS/bill_batch.pm
index 00aab7ed2..3afe20915 100644
--- a/FS/FS/bill_batch.pm
+++ b/FS/FS/bill_batch.pm
@@ -4,6 +4,7 @@ use strict;
use vars qw( @ISA $me $DEBUG );
use FS::Record qw( qsearch qsearchs dbh );
use FS::cust_bill_batch;
+use CAM::PDF;
@ISA = qw( FS::Record );
$me = '[ FS::bill_batch ]';
@@ -53,12 +54,6 @@ Typeset the entire batch as a PDF file. Returns the PDF as a string.
=cut
sub print_pdf {
- eval 'use CAM::PDF';
- if ( $@ ) {
- die "CAM::PDF not installed\n" if $@ =~ /^Can't locate/;
- die "Failed to load CAM::PDF: '$@'\n";
- }
-
my $self = shift;
my $job = shift;
$job->update_statustext(0) if $job;