diff options
author | mark <mark> | 2011-01-20 01:25:03 +0000 |
---|---|---|
committer | mark <mark> | 2011-01-20 01:25:03 +0000 |
commit | 2fd5c89c44d9dfffecc3f93bb13e2e0854db38b5 (patch) | |
tree | c155657cb6cd61914a23b43580da420bc19d1973 | |
parent | 6231b4d0a5f2c78cca6ba10adb920b4ada986f14 (diff) |
load CAM::PDF on startup
-rw-r--r-- | FS/FS/bill_batch.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/FS/FS/bill_batch.pm b/FS/FS/bill_batch.pm index 136db0d9e..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,9 +54,6 @@ Typeset the entire batch as a PDF file. Returns the PDF as a string. =cut sub print_pdf { - eval 'use CAM::PDF'; - warn "Failed to load CAM::PDF: '$@'\n" if $@; - my $self = shift; my $job = shift; $job->update_statustext(0) if $job; |