diff options
author | Mark Wells <mark@freeside.biz> | 2012-02-24 08:45:46 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-02-24 09:30:12 -0800 |
commit | 81a993ab0d0f15d896144f60cbf9477fdf693f76 (patch) | |
tree | d165b9445ad92bf55f4b47299fda586225f4d742 /FS/FS/detail_format/sum_count.pm | |
parent | 7cfa84ec05dd75cd550cbb2c1ddac4161518fd1e (diff) |
CDR rewriting and included-calls feature, #16271
Diffstat (limited to 'FS/FS/detail_format/sum_count.pm')
-rw-r--r-- | FS/FS/detail_format/sum_count.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/detail_format/sum_count.pm b/FS/FS/detail_format/sum_count.pm index 5cf87c7..c40fcb8 100644 --- a/FS/FS/detail_format/sum_count.pm +++ b/FS/FS/detail_format/sum_count.pm @@ -31,7 +31,8 @@ sub append { my $subtotal = ($svcnums->{$svcnum} ||= { count => 0, duration => 0, amount => 0 }); $subtotal->{count}++; - $subtotal->{amount} += $object->rated_price; + $subtotal->{amount} += $object->rated_price + if $object->freesidestatus ne 'no-charge'; } } |