[freeside-commits] branch master updated. 5f26e344a894a65dfa7ccff7d3063e2f20eb0eff

Mark Wells mark at 420.am
Sat May 14 09:41:22 PDT 2016


The branch, master has been updated
       via  5f26e344a894a65dfa7ccff7d3063e2f20eb0eff (commit)
       via  07f96113f8da936c6255245c42f941ae8a3bb16f (commit)
       via  e614e538496f9069fca2fff6da6b248db9750792 (commit)
      from  dadbfd8b7e4e471151ed828f5173ceb7dee95fe5 (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 5f26e344a894a65dfa7ccff7d3063e2f20eb0eff
Merge: 07f9611 dadbfd8
Author: Mark Wells <mark at freeside.biz>
Date:   Sat May 14 09:40:07 2016 -0700

    Merge branch 'master' of git.freeside.biz:/home/git/freeside


commit 07f96113f8da936c6255245c42f941ae8a3bb16f
Merge: e614e53 0937476
Author: Mark Wells <mark at freeside.biz>
Date:   Fri May 13 14:31:18 2016 -0700

    Merge branch 'master' of git.freeside.biz:/home/git/freeside


commit e614e538496f9069fca2fff6da6b248db9750792
Author: Mark Wells <mark at freeside.biz>
Date:   Thu May 12 13:52:41 2016 -0700

    fix sync_bill_date when customer has no other packages, minor fallout from #39822

diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm
index 7b5a3f6..3e63242 100644
--- a/FS/FS/part_pkg/flat.pm
+++ b/FS/FS/part_pkg/flat.pm
@@ -174,7 +174,7 @@ sub cutoff_day {
   my $cust_pkg = shift;
   if ( $self->option('sync_bill_date',1) ) {
     my $next_bill = $cust_pkg->cust_main->next_bill_date;
-    if ( defined($next_bill) ) {
+    if ( $next_bill ) {
       # careful here. if the prorate calculation is going to round to 
       # the nearest day, this needs to always return the same result
       if ( $self->option('prorate_round_day', 1) ) {

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

Summary of changes:
 FS/FS/part_pkg/flat.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)




More information about the freeside-commits mailing list