[freeside-commits] freeside/FS/FS bill_batch.pm,1.1.4.1,1.1.4.2

Mark Wells mark at wavetail.420.am
Wed Jan 19 19:58:38 PST 2011


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv10129

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	bill_batch.pm 
Log Message:
load CAM::PDF on startup

Index: bill_batch.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/bill_batch.pm,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -w -d -r1.1.4.1 -r1.1.4.2
--- bill_batch.pm	20 Jan 2011 01:24:36 -0000	1.1.4.1
+++ bill_batch.pm	20 Jan 2011 03:58:36 -0000	1.1.4.2
@@ -4,6 +4,7 @@
 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 @@
 =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;



More information about the freeside-commits mailing list