From: jeff Date: Wed, 18 Aug 2010 03:43:42 +0000 (+0000) Subject: handle the usage_class-less details in svc_phone sections X-Git-Tag: TORRUS_1_0_9~377 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=64f9efad9014caf9f0395f60afd6a7a5fedd0490;hp=397c392e39c4006361144db5e262779df80ac0c2 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 b73e360af..8468f3abf 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -3750,6 +3750,7 @@ sub _items_svc_phone_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;