[freeside-commits] branch master updated. 332028ae28351dee74715c651fd73948df0ded69
Mark Wells
mark at 420.am
Sat Nov 16 12:31:35 PST 2013
The branch, master has been updated
via 332028ae28351dee74715c651fd73948df0ded69 (commit)
from e20da7110c624325f2a81a9d720d3493f7263ecc (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 332028ae28351dee74715c651fd73948df0ded69
Author: Mark Wells <mark at freeside.biz>
Date: Sat Nov 16 12:31:15 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