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 {
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];
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(@_);
}