Merge pull request #1098 from pramodn02/develop

MIFOSX-1513 : corrected reprocess check for loan repayment schedule
This commit is contained in:
Vishwas Babu A J
2014-10-06 03:25:51 -07:00
@@ -2472,7 +2472,8 @@ public class Loan extends AbstractPersistable<Long> {
.getTransactionDate());
boolean reprocess = true;
if (adjustedTransaction == null && loanTransaction.getTransactionDate().isEqual(LocalDate.now()) && currentInstallment != null
if (isTransactionChronologicallyLatest && adjustedTransaction == null
&& loanTransaction.getTransactionDate().isEqual(LocalDate.now()) && currentInstallment != null
&& currentInstallment.getTotalOutstanding(getCurrency()).isEqualTo(loanTransaction.getAmount(getCurrency()))) {
reprocess = false;
}