adamsaghy commented on code in PR #6103:
URL: https://github.com/apache/fineract/pull/6103#discussion_r3588111600
##########
fineract-working-capital-loan/src/main/java/org/apache/fineract/portfolio/workingcapitalloan/serialization/WorkingCapitalLoanDataValidator.java:
##########
@@ -929,6 +929,14 @@ public void validateUndoTransaction(JsonCommand command,
WorkingCapitalLoan loan
baseDataValidator.reset().parameter("transaction").failWithCode("transaction.already.undone",
transaction.getId());
}
+ final LoanStatus loanStatus = loan.getLoanStatus();
Review Comment:
`org.apache.fineract.portfolio.workingcapitalloan.domain.WorkingCapitalLoanLifecycleStateMachine#canTransition`
might be better to be used here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]