alberto-art3ch commented on code in PR #5117:
URL: https://github.com/apache/fineract/pull/5117#discussion_r2452050505
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/reamortization/LoanReAmortizationServiceImpl.java:
##########
@@ -159,4 +168,20 @@ private LoanTransaction createReAmortizeTransaction(Loan
loan, JsonCommand comma
return new LoanTransaction(loan, loan.getOffice(),
LoanTransactionType.REAMORTIZE, transactionDate, txPrincipalAmount,
txPrincipalAmount, ZERO, ZERO, ZERO, null, false, null,
txExternalId);
}
+
+ private LoanReAmortizationParameter
createReAmortizationParameter(LoanTransaction reAmortizationTransaction,
JsonCommand command) {
+ LoanReAmortizationInterestHandlingType
reAmortizationInterestHandlingType = command.enumValueOfParameterNamed(
+
LoanReAmortizationApiConstants.reAmortizationInterestHandlingParamName,
LoanReAmortizationInterestHandlingType.class);
+ if (reAmortizationInterestHandlingType == null) {
+ reAmortizationInterestHandlingType =
LoanReAmortizationInterestHandlingType.DEFAULT;
+ }
+
+ CodeValue reasonCodeValue = null;
+ if
(command.parameterExists(LoanReAgingApiConstants.reasonCodeValueIdParamName)) {
Review Comment:
Done! Code updated
--
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]