[freeside-commits] freeside/FS/FS/part_pkg recur_Common.pm, 1.8, 1.9

Erik Levinson levinse at wavetail.420.am
Tue Feb 8 21:22:52 PST 2011


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

Modified Files:
	recur_Common.pm 
Log Message:
fix regression caused by RT10481 in sql_external, RT11536

Index: recur_Common.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/recur_Common.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -d -r1.8 -r1.9
--- recur_Common.pm	18 Jan 2011 05:21:08 -0000	1.8
+++ recur_Common.pm	9 Feb 2011 05:22:50 -0000	1.9
@@ -37,6 +37,7 @@
     if ( $recur_method eq 'prorate' ) {
       my $cutoff_day = $self->option('cutoff_day') || 1;
       $charges = $self->calc_prorate(@_, $cutoff_day);
+      $charges += $param->{'override_charges'} if $param->{'override_charges'};
     }
     elsif ( $recur_method eq 'anniversary' and 
             $self->option('sync_bill_date',1) ) {
@@ -44,6 +45,7 @@
       if ( defined($next_bill) ) {
         my $cutoff_day = (localtime($next_bill))[3];
         $charges = $self->calc_prorate(@_, $cutoff_day);
+        $charges += $param->{'override_charges'} if $param->{'override_charges'};
       }
     } 
     elsif ( $recur_method eq 'subscription' ) {



More information about the freeside-commits mailing list