From: Ivan Kohler Date: Thu, 8 May 2014 01:19:05 +0000 (-0700) Subject: fix CDR pre-rating w/unlinked phone numbers, RT#27267 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=20d2a04059d45272e06c8677e442913a251f04a2 fix CDR pre-rating w/unlinked phone numbers, RT#27267 --- diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index d3e44fedb..d13c88bc4 100644 --- a/FS/FS/cdr.pm +++ b/FS/FS/cdr.pm @@ -911,7 +911,7 @@ sub rate_prefix { $charge_sec -= ($included_min->{$regionnum}{$ratetimenum} * 60); $included_min->{$regionnum}{$ratetimenum} = 0; } - } elsif ( ${ $opt{'plan_included_min'} } > 0 ) { + } elsif ( $opt{plan_included_min} && ${ $opt{plan_included_min} } > 0 ) { # The package definition has included minutes, but only for in-group # rate details. Decrement them if this is an in-group call. if ( $rate_detail->region_group ) {