[freeside-commits] freeside/FS/FS cust_bill.pm,1.290,1.291

Jeff Finucane,420,, jeff at wavetail.420.am
Tue Aug 17 20:43:44 PDT 2010


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

Modified Files:
	cust_bill.pm 
Log Message:
handle the usage_class-less details in svc_phone sections

Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.290
retrieving revision 1.291
diff -u -w -d -r1.290 -r1.291
--- cust_bill.pm	18 Aug 2010 01:33:26 -0000	1.290
+++ cust_bill.pm	18 Aug 2010 03:43:42 -0000	1.291
@@ -3750,6 +3750,7 @@
   my %lines = ();
 
   my %usage_class =  map { $_->classnum => $_ } qsearch( 'usage_class', {} );
+  $usage_class{''} ||= new FS::usage_class { 'classname' => '', 'weight' => 0 };
 
   foreach my $cust_bill_pkg ( $self->cust_bill_pkg ) {
     next unless $cust_bill_pkg->pkgnum > 0;



More information about the freeside-commits mailing list