Merge pull request #526 from hungnguyen2712/create-and-approve-loan-on-batch-mode
FINERACT-684: Create and approve loan on batch mode
This commit is contained in:
+14
-8
@@ -6497,14 +6497,20 @@ public class Loan extends AbstractPersistableCustom<Long> {
|
||||
return this.charges;
|
||||
}
|
||||
public void initializeLazyCollections() {
|
||||
this.charges.size() ;
|
||||
this.trancheCharges.size() ;
|
||||
this.repaymentScheduleInstallments.size() ;
|
||||
this.loanTransactions.size() ;
|
||||
this.disbursementDetails.size() ;
|
||||
this.loanTermVariations.size() ;
|
||||
this.collateral.size() ;
|
||||
this.loanOfficerHistory.size() ;
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
public void initializeLoanOfficerHistory() {
|
||||
|
||||
+2
-1
@@ -19,6 +19,7 @@
|
||||
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;
|
||||
@@ -181,7 +182,7 @@ public class LoanAssembler {
|
||||
if (loanPurposeId != null) {
|
||||
loanPurpose = this.codeValueRepository.findOneWithNotFoundDetection(loanPurposeId);
|
||||
}
|
||||
List<LoanDisbursementDetails> disbursementDetails = null;
|
||||
List<LoanDisbursementDetails> disbursementDetails = new ArrayList<>();
|
||||
BigDecimal fixedEmiAmount = null;
|
||||
if (loanProduct.isMultiDisburseLoan() || loanProduct.canDefineInstallmentAmount()) {
|
||||
fixedEmiAmount = this.fromApiJsonHelper.extractBigDecimalWithLocaleNamed(LoanApiConstants.emiAmountParameterName, element);
|
||||
|
||||
Reference in New Issue
Block a user