Merge pull request #560 from pramodn02/MIFOSX-628

Mifosx 628
This commit is contained in:
Vishwas Babu A J
2013-09-03 07:18:56 -07:00
@@ -842,7 +842,10 @@ public class SavingsAccount extends AbstractPersistable<Long> {
}
private void updateToNextAnnualFeeDueDateFrom(final LocalDate startingDate) {
final LocalDate nextDueLocalDate = startingDate.withMonthOfYear(this.annualFeeOnMonth).withDayOfMonth(this.annualFeeOnDay);
LocalDate nextDueLocalDate = startingDate.withMonthOfYear(this.annualFeeOnMonth).withDayOfMonth(this.annualFeeOnDay);
if (startingDate.isAfter(nextDueLocalDate)) {
nextDueLocalDate = nextDueLocalDate.plusYears(1);
}
this.annualFeeNextDueDate = nextDueLocalDate.toDate();
}