[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm, 1.79.2.7, 1.79.2.8
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Jul 13 13:32:22 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv3460
Modified Files:
Tag: FREESIDE_1_9_BRANCH
voip_cdr.pm
Log Message:
include rate_detail->conn_sec in displayed duration #RT8605
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.79.2.7
retrieving revision 1.79.2.8
diff -u -w -d -r1.79.2.7 -r1.79.2.8
--- voip_cdr.pm 28 Jun 2010 22:20:07 -0000 1.79.2.7
+++ voip_cdr.pm 13 Jul 2010 20:32:20 -0000 1.79.2.8
@@ -549,8 +549,13 @@
my $minutes = sprintf("%.1f", $seconds / 60);
$minutes =~ s/\.0$// if $granularity == 60;
+ my $duration_minutes = #for invoice display purposes
+ sprintf("%.1f", ($seconds + $rate_detail->conn_sec)/ 60);
+ $duration_minutes =~ s/\.0$// if $granularity == 60;
+
# per call rather than per minute
$minutes = 1 unless $granularity;
+ $duration_minutes = 1 unless $granularity;
$included_min{$regionnum} -= $minutes;
@@ -573,7 +578,7 @@
@call_details = (
$cdr->downstream_csv( 'format' => $output_format,
'granularity' => $granularity,
- 'minutes' => $minutes,
+ 'minutes' => $duration_minutes,
'charge' => $charge,
'pretty_dst' => $pretty_destnum,
'dst_regionname' => $regionname,
More information about the freeside-commits
mailing list