X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fflat.pm;h=d4b95b5105221802574f626a36323d77c10c5610;hb=cb43a46ebb3d5c5ce8b60707093a53e8bb2e8f9b;hp=fdf08c99b19960b3d72e684146deac1230aeedc9;hpb=15a554298a7a58669c5b818344cfd8c5cc6059a7;p=freeside.git diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm index fdf08c99b..d4b95b510 100644 --- a/FS/FS/part_pkg/flat.pm +++ b/FS/FS/part_pkg/flat.pm @@ -126,7 +126,7 @@ sub calc_recur { if $self->option('recur_temporality', 1) eq 'preceding' && $last_bill == 0; my $charge = $self->base_recur($cust_pkg, $sdate); - if ( my $cutoff_day = $self->cutoff_day($cust_pkg) ) { + if ( my $cutoff_day = $self->flat_cutoff_day($cust_pkg) ) { $charge = $self->calc_prorate(@_); } elsif ( $param->{freq_override} ) { @@ -140,7 +140,7 @@ sub calc_recur { return sprintf('%.2f', $charge - $discount); } -sub cutoff_day { +sub flat_cutoff_day { my $self = shift; my $cust_pkg = shift; if ( $self->option('sync_bill_date',1) ) {