CDR rewriting and included-calls feature, #16271
[freeside.git] / FS / FS / detail_format / sum_count.pm
index 5cf87c7..c40fcb8 100644 (file)
@@ -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';
   }
 }