[freeside-commits] freeside/FS/FS/part_pkg recur_Common.pm, 1.4, 1.5 flat.pm, 1.45, 1.46 prorate_Mixin.pm, 1.1, 1.2

Ivan,,, ivan at wavetail.420.am
Tue Aug 24 12:08:01 PDT 2010


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

Modified Files:
	recur_Common.pm flat.pm prorate_Mixin.pm 
Log Message:
eliminate needless noise on lack of sync_bill_date option

Index: prorate_Mixin.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/prorate_Mixin.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- prorate_Mixin.pm	19 Aug 2010 19:11:32 -0000	1.1
+++ prorate_Mixin.pm	24 Aug 2010 19:07:59 -0000	1.2
@@ -48,7 +48,7 @@
  
   my $charge = $self->option('recur_fee') || 0;
   my $cutoff_day;
-  if( $self->option('sync_bill_date') ) {
+  if( $self->option('sync_bill_date',1) ) {
     my $next_bill = $cust_pkg->cust_main->next_bill_date;
     if( defined($next_bill) and $next_bill != $$sdate ) {
       $cutoff_day = (localtime($next_bill))[3];

Index: flat.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/flat.pm,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -w -d -r1.45 -r1.46
--- flat.pm	19 Aug 2010 19:11:32 -0000	1.45
+++ flat.pm	24 Aug 2010 19:07:59 -0000	1.46
@@ -171,7 +171,7 @@
   return 0
     if $self->option('recur_temporality', 1) eq 'preceding' && $last_bill == 0;
 
-  if( $self->option('sync_bill_date') ) {
+  if( $self->option('sync_bill_date',1) ) {
     return $self->calc_prorate(@_);
   }
   else {

Index: recur_Common.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/recur_Common.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- recur_Common.pm	19 Aug 2010 19:11:32 -0000	1.4
+++ recur_Common.pm	24 Aug 2010 19:07:59 -0000	1.5
@@ -27,7 +27,7 @@
     my $recur_method = $self->option('recur_method', 1) || 'anniversary';
                   
     if ( $recur_method eq 'prorate' 
-        or ($recur_method eq 'anniversary' and $self->option('sync_bill_date'))
+        or ($recur_method eq 'anniversary' and $self->option('sync_bill_date',1))
       ) {
       $charges = $self->calc_prorate(@_);
     } 



More information about the freeside-commits mailing list