eliminate needless noise on lack of sync_bill_date option
authorivan <ivan>
Tue, 24 Aug 2010 19:07:59 +0000 (19:07 +0000)
committerivan <ivan>
Tue, 24 Aug 2010 19:07:59 +0000 (19:07 +0000)
FS/FS/part_pkg/flat.pm
FS/FS/part_pkg/prorate_Mixin.pm
FS/FS/part_pkg/recur_Common.pm

index a04f44a..537cdcf 100644 (file)
@@ -171,7 +171,7 @@ sub calc_recur {
   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 a60858b..2adf2f1 100644 (file)
@@ -48,7 +48,7 @@ sub calc_prorate {
  
   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 9a67745..21a78c0 100644 (file)
@@ -27,7 +27,7 @@ sub calc_recur_Common {
     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(@_);
     }