summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg/prorate_Mixin.pm
diff options
context:
space:
mode:
authormark <mark>2010-12-08 00:02:43 +0000
committermark <mark>2010-12-08 00:02:43 +0000
commit49929cc03fc06813446ed61fe25b8b6583ca91ce (patch)
tree9fbdf99b8a676d22961a01f8a1dfecac9f38b181 /FS/FS/part_pkg/prorate_Mixin.pm
parent8aa8e80791b7b99f4ac2e8e242fe83e1421c98d2 (diff)
fix incorrect bill dates from prorate, RT#10830
Diffstat (limited to 'FS/FS/part_pkg/prorate_Mixin.pm')
-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