[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm,1.39,1.40

Ivan,,, ivan at wavetail.420.am
Wed Oct 29 01:03:10 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv30585/FS/FS/part_pkg

Modified Files:
	voip_cdr.pm 
Log Message:
prepaid cdr pickup & bill daemon, RT#4184

Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- voip_cdr.pm	24 Oct 2008 21:31:38 -0000	1.39
+++ voip_cdr.pm	29 Oct 2008 08:03:08 -0000	1.40
@@ -395,7 +395,7 @@
       # don't add it to invoice, don't set its status to NULL,
       # don't call downstream_csv or something on it...
       # but DO emit a warning...
-      #if ( ! $rate_detail && ! scalar(@call_details) ) {
+      #if ( ! $rate_detail && ! scalar(@call_details) ) {}
       if ( ! $rate_detail && $charge eq '' ) {
 
         warn "no rate_detail found for CDR.acctid:  ". $cdr->acctid.
@@ -509,8 +509,10 @@
 
   } #if ( $spool_cdr && length($downstream_cdr) )
 
-  $self->option('recur_fee') + $charges;
+  $charges += $self->option('recur_fee')
+    if $param->{'increment_next_bill'};
 
+  $charges;
 }
 
 sub is_free {



More information about the freeside-commits mailing list