summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-05-05 09:58:09 -0700
committerMark Wells <mark@freeside.biz>2014-05-05 09:59:55 -0700
commit7344af8dd13cef85f7e58bbb258a56ed1f724e72 (patch)
treefe986cf52a4d5c709b5a21740f95aa43e0195489
parentc0afff8c23e18fc39e60219b2b48dcdde14bd5d8 (diff)
fix zero call duration appearing on invoices when upstream_simple rating is used, #28959
-rw-r--r--FS/FS/cdr.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index 583e728c5..d3e44fedb 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -999,6 +999,8 @@ sub rate_upstream_simple {
sprintf('%.3f', $self->upstream_price),
$opt{'svcnum'},
'rated_classnum' => $self->calltypenum,
+ 'rated_seconds' => $self->billsec,
+ # others? upstream_*_regionname => rated_regionname is possible
);
}