[freeside-commits] branch FREESIDE_3_BRANCH updated. 6420848d0d09e72f99196c5e5505662cee1bcab7

Ivan ivan at 420.am
Wed May 7 18:19:07 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  6420848d0d09e72f99196c5e5505662cee1bcab7 (commit)
      from  23d5a00f2f0e0cb51204161eef7fdb69b1091b03 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6420848d0d09e72f99196c5e5505662cee1bcab7
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed May 7 18:19:06 2014 -0700

    fix CDR pre-rating w/unlinked phone numbers, RT#27267

diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index d3e44fe..d13c88b 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 ) {

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cdr.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list