Revert "FINERACT-684: Create and approve loan on batch mode "

This commit is contained in:
Vishwas Babu A J
2019-02-26 01:12:24 -08:00
committed by GitHub
parent 5c782832b3
commit dd0771b24f
4 changed files with 9 additions and 88 deletions
@@ -6497,20 +6497,14 @@ public class Loan extends AbstractPersistableCustom<Long> {
return this.charges;
}
public void initializeLazyCollections() {
checkAndFetchLazyCollection(this.charges);
checkAndFetchLazyCollection(this.trancheCharges);
checkAndFetchLazyCollection(this.repaymentScheduleInstallments);
checkAndFetchLazyCollection(this.loanTransactions);
checkAndFetchLazyCollection(this.disbursementDetails);
checkAndFetchLazyCollection(this.loanTermVariations);
checkAndFetchLazyCollection(this.collateral);
checkAndFetchLazyCollection(this.loanOfficerHistory);
}
private void checkAndFetchLazyCollection(Collection lazyCollection){
if (lazyCollection != null) {
lazyCollection.size();
}
this.charges.size() ;
this.trancheCharges.size() ;
this.repaymentScheduleInstallments.size() ;
this.loanTransactions.size() ;
this.disbursementDetails.size() ;
this.loanTermVariations.size() ;
this.collateral.size() ;
this.loanOfficerHistory.size() ;
}
public void initializeLoanOfficerHistory() {
@@ -19,7 +19,6 @@
package org.apache.fineract.portfolio.loanaccount.service;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
@@ -182,7 +181,7 @@ public class LoanAssembler {
if (loanPurposeId != null) {
loanPurpose = this.codeValueRepository.findOneWithNotFoundDetection(loanPurposeId);
}
List<LoanDisbursementDetails> disbursementDetails = new ArrayList<>();
List<LoanDisbursementDetails> disbursementDetails = null;
BigDecimal fixedEmiAmount = null;
if (loanProduct.isMultiDisburseLoan() || loanProduct.canDefineInstallmentAmount()) {
fixedEmiAmount = this.fromApiJsonHelper.extractBigDecimalWithLocaleNamed(LoanApiConstants.emiAmountParameterName, element);