josehernandezfintecheandomx commented on code in PR #2908:
URL: https://github.com/apache/fineract/pull/2908#discussion_r1086621916
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java:
##########
@@ -3801,6 +3822,8 @@ public ChangedTransactionDetail closeAsWrittenOff(final
JsonCommand command, fin
validateAccountStatus(LoanEvent.WRITE_OFF_OUTSTANDING);
+ final LocalDate writtenOffOnLocalDate =
command.localDateValueOfParameterNamed(TRANSACTION_DATE);
+ this.closedOnDate = writtenOffOnLocalDate;
Review Comment:
I needed to move the set of the `closedOnDate` value before the Life cycle
machine method call because when the event listener was called It was in null
at that moment
--
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]