projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b79a8cb
)
fix display of duration on inbound packages with use_duraiton, RT#14370
author
ivan
<ivan>
Mon, 24 Oct 2011 21:21:05 +0000
(21:21 +0000)
committer
ivan
<ivan>
Mon, 24 Oct 2011 21:21:05 +0000
(21:21 +0000)
FS/FS/part_pkg/voip_inbound.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/voip_inbound.pm
b/FS/FS/part_pkg/voip_inbound.pm
index
ec7dad6
..
e3af5aa
100644
(file)
--- a/
FS/FS/part_pkg/voip_inbound.pm
+++ b/
FS/FS/part_pkg/voip_inbound.pm
@@
-272,12
+272,16
@@
sub calc_usage {
if ( $charge > 0 ) {
$charges += $charge;
if ( $charge > 0 ) {
$charges += $charge;
- my @call_details = ($cdr->downstream_csv( 'format' => $output_format,
- 'charge' => $charge,
- 'minutes' => $minutes,
- 'granularity' => $granularity,
- )
- );
+ my @call_details = (
+ $cdr->downstream_csv( 'format' => $output_format,
+ 'charge' => $charge,
+ 'seconds' => ($use_duration
+ ? $cdr->duration
+ : $cdr->billsec
+ ),
+ 'granularity' => $granularity,
+ )
+ );
push @$details,
[ 'C',
$call_details[0],
push @$details,
[ 'C',
$call_details[0],