only one header per package, not one per service -- fixes #4260
authorjeff <jeff>
Thu, 20 Nov 2008 16:59:40 +0000 (16:59 +0000)
committerjeff <jeff>
Thu, 20 Nov 2008 16:59:40 +0000 (16:59 +0000)
FS/FS/part_pkg/voip_cdr.pm

index a3b54ee..600971f 100644 (file)
@@ -477,11 +477,11 @@ sub calc_recur {
 
     } # $cdr
 
-    unshift @$details, [ 'C', FS::cdr::invoice_header( $output_format) ]
-      if (@$details && $self->option('rating_method') eq 'upstream_simple' );
-
   } # $cust_svc
 
+  unshift @$details, [ 'C', FS::cdr::invoice_header( $output_format) ]
+    if (@$details && $self->option('rating_method') eq 'upstream_simple' );
+
   if ( $spool_cdr && length($downstream_cdr) ) {
 
     use FS::UID qw(datasrc);