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:
Keith Woodlock
2013-07-25 01:40:33 +01:00
parent b48bc62691
commit 121f945af5
@@ -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,