[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm,1.8,1.9
Ivan,,,
ivan at wavetail.420.am
Tue Mar 25 20:04:36 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv7760
Modified Files:
voip_cdr.pm
Log Message:
don't granular-ize 0 billsec calls into having a minimum charge
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- voip_cdr.pm 15 Mar 2008 22:18:59 -0000 1.8
+++ voip_cdr.pm 26 Mar 2008 03:04:33 -0000 1.9
@@ -278,9 +278,10 @@
unless exists $included_min{$regionnum};
my $granularity = $rate_detail->sec_granularity;
- my $seconds = $cdr->billsec; # |ength($cdr->billsec) ? $cdr->billsec : $cdr->duration;
+ my $seconds = $cdr->billsec; # length($cdr->billsec) ? $cdr->billsec : $cdr->duration;
$seconds += $granularity - ( $seconds % $granularity )
- if $granularity; # 0 is per call
+ if $seconds # don't granular-ize 0 billsec calls (bills them)
+ && $granularity; # 0 is per call
my $minutes = sprintf("%.1f", $seconds / 60);
$minutes =~ s/\.0$// if $granularity == 60;
More information about the freeside-commits
mailing list