MIFOSX-565: allow transactions on any type of closed loan to be adjusted or undone resulting in loan becoming active again and allowing transaction to be made against it.
This commit is contained in:
-5
@@ -1752,11 +1752,6 @@ public class Loan extends AbstractPersistable<Long> {
|
||||
errorMessage);
|
||||
}
|
||||
|
||||
if (isClosed()) {
|
||||
final String errorMessage = "Transactions of a closed loan cannot be adjusted.";
|
||||
throw new InvalidLoanTransactionTypeException("transaction", "adjustment.is.not.allowed.on.closed.loan", errorMessage);
|
||||
}
|
||||
|
||||
transactionForAdjustment.reverse();
|
||||
if (newTransactionDetail.isRepayment() || newTransactionDetail.isInterestWaiver()) {
|
||||
changedTransactionDetail = handleRepaymentOrWaiverTransaction(newTransactionDetail, loanLifecycleStateMachine,
|
||||
|
||||
Reference in New Issue
Block a user