fix incorrect bill dates from prorate, RT#10830
[freeside.git] / FS / FS / part_pkg / prorate_Mixin.pm
index 4516904..3f3d86f 100644 (file)
@@ -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