[freeside-commits] branch master updated. 4d32fe65cf99b766886fdfad4d8d3c7a3537bbc1

Ivan Kohler ivan at freeside.biz
Fri Jul 26 11:35:11 PDT 2019


The branch, master has been updated
       via  4d32fe65cf99b766886fdfad4d8d3c7a3537bbc1 (commit)
      from  02d73ef84103d6bdaf49e6a179a0ad46f9719d25 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4d32fe65cf99b766886fdfad4d8d3c7a3537bbc1
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Jul 26 11:35:08 2019 -0700

    clarify interface difference between calc_setup and calc_recur: calc_setup takes a start time, calc_recur takes a start time scalar reference, RT#83503

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)) {

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_pkg/flat_introrate.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list