MIFOSX-1513 : corrected reprocess check for loan repayment schedule

This commit is contained in:
Pramod Nuthakki
2014-10-06 14:09:59 +05:30
parent b796cae43c
commit f30ad4ca0b
@@ -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;
}