MIFOSX-1513 : corrected reprocess check for loan repayment schedule
This commit is contained in:
+2
-1
@@ -2472,7 +2472,8 @@ public class Loan extends AbstractPersistable<Long> {
|
|||||||
.getTransactionDate());
|
.getTransactionDate());
|
||||||
boolean reprocess = true;
|
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()))) {
|
&& currentInstallment.getTotalOutstanding(getCurrency()).isEqualTo(loanTransaction.getAmount(getCurrency()))) {
|
||||||
reprocess = false;
|
reprocess = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user