summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-05-12 13:52:41 -0700
committerMark Wells <mark@freeside.biz>2016-05-16 15:02:53 -0700
commitd5df4bcae22fc17e7c4ef11df6f6b9353a4db2dd (patch)
tree89241e4b2ec0456d3805aa02779ab219e340a6dc /FS/FS
parenta2bb568ac8f2b12250d068d388b1f75431f4cd5c (diff)
fix sync_bill_date when customer has no other packages, minor fallout from #39822
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/part_pkg/flat.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm
index 7b5a3f6bb..3e63242ae 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) ) {