X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fflat_introrate.pm;h=4c9abebc9d2936f73fb6d983155af61a30fdda8f;hb=57bb423fe457ba4e13726877f53bcdf944f828f8;hp=f12b1accdaf58dcb722032f4af0db697f8684c94;hpb=9c6c62fe29a5b5e260d331fb0b663a492dc0bf2d;p=freeside.git diff --git a/FS/FS/part_pkg/flat_introrate.pm b/FS/FS/part_pkg/flat_introrate.pm index f12b1accd..4c9abebc9 100644 --- a/FS/FS/part_pkg/flat_introrate.pm +++ b/FS/FS/part_pkg/flat_introrate.pm @@ -73,15 +73,15 @@ sub intro_end { } sub base_recur { - my($self, $cust_pkg, $time ) = @_; + my($self, $cust_pkg, $sdate ) = @_; my $now; - if (!$time) { # the "$sdate" from _make_lines + if (!$sdate) { # the "$sdate" from _make_lines my $log = FS::Log->new('FS::part_pkg'); $log->warning("flat_introrate base_recur requires date!"); $now = time; } else { - $now = $$time; + $now = $$sdate; } if ($now < $self->intro_end($cust_pkg)) {