projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a2bb568
)
fix sync_bill_date when customer has no other packages, minor fallout from #39822
author
Mark Wells
<mark@freeside.biz>
Thu, 12 May 2016 20:52:41 +0000
(13:52 -0700)
committer
Mark Wells
<mark@freeside.biz>
Mon, 16 May 2016 22:02:53 +0000
(15:02 -0700)
FS/FS/part_pkg/flat.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/flat.pm
b/FS/FS/part_pkg/flat.pm
index
7b5a3f6
..
3e63242
100644
(file)
--- 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) ) {