From: ivan Date: Mon, 1 May 2006 13:09:11 +0000 (+0000) Subject: small fix to make prorate behave on the 1st as it did before X-Git-Tag: BEFORE_FINAL_MASONIZE~155 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=aa9fd844aeeb385cfc1e934eb7b7a08b1353a4ea small fix to make prorate behave on the 1st as it did before --- diff --git a/FS/FS/part_pkg/prorate.pm b/FS/FS/part_pkg/prorate.pm index f5d447adf..e43667993 100644 --- a/FS/FS/part_pkg/prorate.pm +++ b/FS/FS/part_pkg/prorate.pm @@ -43,7 +43,7 @@ sub calc_recur { my $mend; my $mstart; - if ( $mday > $cutoff_day ) { + if ( $mday >= $cutoff_day ) { $mend = timelocal(0,0,0,$cutoff_day, $mon == 11 ? 0 : $mon+1, $year+($mon==11)); $mstart =