projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"simple with accountcode" CDR format, #16348
[freeside.git]
/
FS
/
FS
/
detail_format.pm
diff --git
a/FS/FS/detail_format.pm
b/FS/FS/detail_format.pm
index
af97f36
..
f70acc6
100644
(file)
--- a/
FS/FS/detail_format.pm
+++ b/
FS/FS/detail_format.pm
@@
-171,11
+171,12
@@
sub single_detail {
die "$me error combining ".$self->csv->error_input."\n"
if !$status;
die "$me error combining ".$self->csv->error_input."\n"
if !$status;
- my $rated_price = $cdr->rated_price;
- $rated_price = 0 if $cdr->freesidestatus eq 'no-charge';
+ my $object = $self->{inbound} ? $cdr->cdr_termination(1) : $cdr;
+ my $price = $object->rated_price if $object;
+ $price = 0 if $cdr->freesidestatus eq 'no-charge';
FS::cust_bill_pkg_detail->new( {
FS::cust_bill_pkg_detail->new( {
- 'amount' => $
rated_
price,
+ 'amount' => $price,
'classnum' => $cdr->rated_classnum,
'duration' => $cdr->rated_seconds,
'regionname' => $cdr->rated_regionname,
'classnum' => $cdr->rated_classnum,
'duration' => $cdr->rated_seconds,
'regionname' => $cdr->rated_regionname,