X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fdetail_format%2Fsum_count.pm;h=c40fcb8fe97daed30e3f4090cce231f1b93afc83;hb=194d0e29f4587669032da09c3bf814c3531898a2;hp=5597de2b201b800891e1d166dbb8458af5ae9eac;hpb=0e256e7b9dcc00dedacf499b92bd1c945248a3b9;p=freeside.git diff --git a/FS/FS/detail_format/sum_count.pm b/FS/FS/detail_format/sum_count.pm index 5597de2b2..c40fcb8fe 100644 --- a/FS/FS/detail_format/sum_count.pm +++ b/FS/FS/detail_format/sum_count.pm @@ -2,7 +2,7 @@ package FS::detail_format::sum_count; use strict; use vars qw( $DEBUG ); -use parent qw(FS::detail_format); +use base qw(FS::detail_format); use FS::Record qw(qsearchs); use FS::cust_svc; use FS::svc_Common; # for label @@ -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'; } }