Merge branch 'master' of git.freeside.biz:/home/git/freeside
authorMark Wells <mark@freeside.biz>
Fri, 13 May 2016 21:31:18 +0000 (14:31 -0700)
committerMark Wells <mark@freeside.biz>
Fri, 13 May 2016 21:31:18 +0000 (14:31 -0700)
FS/FS/part_pkg/flat.pm

index 7b5a3f6..3e63242 100644 (file)
@@ -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) ) {