summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2010-12-08 00:03:13 +0000
committermark <mark>2010-12-08 00:03:13 +0000
commit04de42e8771b37019c443e8104dadb024d3b6d67 (patch)
tree03f085d435fc7ffb15f11e40efc309a1f6f19409
parent376db7da0730dc2d9483d4e53954647fd7b578e3 (diff)
fix incorrect bill dates from prorate, RT#10830
-rw-r--r--FS/FS/part_pkg/prorate_Mixin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/prorate_Mixin.pm b/FS/FS/part_pkg/prorate_Mixin.pm
index 451690485..3f3d86f75 100644
--- a/FS/FS/part_pkg/prorate_Mixin.pm
+++ b/FS/FS/part_pkg/prorate_Mixin.pm
@@ -81,7 +81,7 @@ sub calc_prorate {
$mend =
timelocal(0,0,0,$cutoff_day,$mon,$year);
$mstart =
- timelocal(0,0,0,$cutoff_day,$mon == 0 ? 11 : $mon - 1,$year-($mon==11));
+ timelocal(0,0,0,$cutoff_day,$mon == 0 ? 11 : $mon - 1,$year-($mon==0));
}
# next bill date will be figured as $$sdate + one period