diff options
author | Mark Wells <mark@freeside.biz> | 2013-11-16 12:30:50 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-11-16 12:30:50 -0800 |
commit | 12078ded9009f44f9ea1d7ac01a38c89c4661ea7 (patch) | |
tree | a0173ddc16e2d747595e82d4e40f015fc6009bbf /FS | |
parent | bb2c4fd6f87c1bf47ca3fdbf7a2874179ec2673a (diff) |
fix off-by-one when a per-call rate has included free calls, #24716
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cdr.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index b16cb8648..bf508dd8c 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 { |