[freeside-commits] freeside/FS/FS/part_pkg voip_inbound.pm, 1.12.2.3, 1.12.2.4
Ivan,,,
ivan at wavetail.420.am
Mon Oct 24 14:21:07 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv22781
Modified Files:
Tag: FREESIDE_2_3_BRANCH
voip_inbound.pm
Log Message:
fix display of duration on inbound packages with use_duraiton, RT#14370
Index: voip_inbound.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_inbound.pm,v
retrieving revision 1.12.2.3
retrieving revision 1.12.2.4
diff -u -w -d -r1.12.2.3 -r1.12.2.4
--- voip_inbound.pm 8 Oct 2011 23:12:03 -0000 1.12.2.3
+++ voip_inbound.pm 24 Oct 2011 21:21:05 -0000 1.12.2.4
@@ -272,9 +272,13 @@
if ( $charge > 0 ) {
$charges += $charge;
- my @call_details = ($cdr->downstream_csv( 'format' => $output_format,
+ my @call_details = (
+ $cdr->downstream_csv( 'format' => $output_format,
'charge' => $charge,
- 'minutes' => $minutes,
+ 'seconds' => ($use_duration
+ ? $cdr->duration
+ : $cdr->billsec
+ ),
'granularity' => $granularity,
)
);
More information about the freeside-commits
mailing list