MIFOSX-335: Fix error with adding loan charge to loan application.

This commit is contained in:
Keith Woodlock
2013-05-04 00:08:46 +01:00
parent 339b95e615
commit d5ef1033c3
@@ -475,7 +475,7 @@ public class Loan extends AbstractPersistable<Long> {
// if loan charge is to be applied on a future date, the loan
// transaction would show todays date as applied date
if (currentDate.isBefore(transactionDate)) {
if (transactionDate == null || currentDate.isBefore(transactionDate)) {
transactionDate = currentDate;
}
}