francisguchie commented on a change in pull request #1264:
URL: https://github.com/apache/fineract/pull/1264#discussion_r499161549



##########
File path: 
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanAccountDomainServiceJpa.java
##########
@@ -150,6 +155,13 @@ public LoanTransaction makeRepayment(final Loan loan, 
final CommandProcessingRes
             final LocalDate transactionDate, final BigDecimal 
transactionAmount, final PaymentDetail paymentDetail, final String noteText,
             final String txnExternalId, final boolean isRecoveryRepayment, 
boolean isAccountTransfer, HolidayDetailDTO holidayDetailDto,
             Boolean isHolidayValidationDone, final boolean 
isLoanToLoanTransfer) {
+
+        final List<ApiParameterError> dataValidationErrors = new ArrayList<>();
+        final DataValidatorBuilder baseDataValidator = new 
DataValidatorBuilder(dataValidationErrors).resource("loan.transaction");
+        final GlobalConfigurationPropertyData configuration = 
this.configurationReadPlatformService
+                .retrieveGlobalConfiguration("Enable-Loan-Overpayment");

Review comment:
       thanks @ptuomola i did not think of this suggested approach. let me try 
just that 




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to