From: jeff Date: Wed, 18 Aug 2010 04:42:16 +0000 (+0000) Subject: handle the usage_class-less details in svc_phone sections X-Git-Tag: freeside_1_9_5~54 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=74b4068002a318228b327ef0709eda85811d6ab2 handle the usage_class-less details in svc_phone sections --- diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 37603bd17..8e7973d33 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -3613,6 +3613,7 @@ sub _items_extra_usage_sections { 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;