[freeside-commits] freeside/FS/FS bill_batch.pm,1.1,1.2

Mark Wells mark at wavetail.420.am
Wed Jan 19 17:25:05 PST 2011


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

Modified Files:
	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
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- bill_batch.pm	8 Jun 2010 22:25:00 -0000	1.1
+++ bill_batch.pm	20 Jan 2011 01:25:03 -0000	1.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,9 +54,6 @@
 =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;



More information about the freeside-commits mailing list