[freeside-commits] freeside/FS/FS cust_bill.pm, 1.299.2.29, 1.299.2.30

Erik Levinson levinse at wavetail.420.am
Mon Apr 11 00:19:35 PDT 2011


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	cust_bill.pm 
Log Message:
possibly fix spurious error from cust_bill.pm related to barcode files when barcodes are turned off

Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.299.2.29
retrieving revision 1.299.2.30
diff -u -w -d -r1.299.2.29 -r1.299.2.30
--- cust_bill.pm	30 Mar 2011 19:52:30 -0000	1.299.2.29
+++ cust_bill.pm	11 Apr 2011 07:19:32 -0000	1.299.2.30
@@ -3306,7 +3306,7 @@
   my ($file, $logofile, $barcodefile) = $self->print_latex(@_);
   my $ps = generate_ps($file);
   unlink($logofile);
-  unlink($barcodefile);
+  unlink($barcodefile) if $barcodefile;
 
   $ps;
 }
@@ -3335,7 +3335,7 @@
   my ($file, $logofile, $barcodefile) = $self->print_latex(@_);
   my $pdf = generate_pdf($file);
   unlink($logofile);
-  unlink($barcodefile);
+  unlink($barcodefile) if $barcodefile;
 
   $pdf;
 }



More information about the freeside-commits mailing list