[freeside-commits] branch FREESIDE_3_BRANCH updated. 12078ded9009f44f9ea1d7ac01a38c89c4661ea7

Mark Wells mark at 420.am
Sat Nov 16 12:31:33 PST 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  12078ded9009f44f9ea1d7ac01a38c89c4661ea7 (commit)
      from  bb2c4fd6f87c1bf47ca3fdbf7a2874179ec2673a (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 12078ded9009f44f9ea1d7ac01a38c89c4661ea7
Author: Mark Wells <mark at freeside.biz>
Date:   Sat Nov 16 12:30:50 2013 -0800

    fix off-by-one when a per-call rate has included free calls, #24716

diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index b16cb86..bf508dd 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -904,7 +904,7 @@ sub rate_prefix {
       #${$opt{region_group_included_min}} -= $minutes 
       #    if $region_group && $rate_detail->region_group;
 
-      if ( $included_min->{$regionnum}{$ratetimenum} > $minutes ) {
+      if ( $included_min->{$regionnum}{$ratetimenum} >= $minutes ) {
         $charge_sec = 0;
         $included_min->{$regionnum}{$ratetimenum} -= $minutes;
       } else {

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

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




More information about the freeside-commits mailing list