tidy up new loan data returned for submit loan flow and ensure locale is posted for forms with numbers and monetary values in them.
This commit is contained in:
+13
@@ -30,6 +30,7 @@ public class ApplicationPagesRoutesController {
|
|||||||
BasicAuthUserDetails userDetails = (BasicAuthUserDetails) authentication.getPrincipal();
|
BasicAuthUserDetails userDetails = (BasicAuthUserDetails) authentication.getPrincipal();
|
||||||
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
||||||
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
||||||
|
model.addAttribute("currentLocale", LocaleContextHolder.getLocale().toString());
|
||||||
|
|
||||||
return "redirect:/home";
|
return "redirect:/home";
|
||||||
}
|
}
|
||||||
@@ -40,6 +41,7 @@ public class ApplicationPagesRoutesController {
|
|||||||
BasicAuthUserDetails userDetails = (BasicAuthUserDetails) authentication.getPrincipal();
|
BasicAuthUserDetails userDetails = (BasicAuthUserDetails) authentication.getPrincipal();
|
||||||
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
||||||
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
||||||
|
model.addAttribute("currentLocale", LocaleContextHolder.getLocale().toString());
|
||||||
|
|
||||||
return new ModelAndView("/home");
|
return new ModelAndView("/home");
|
||||||
}
|
}
|
||||||
@@ -56,6 +58,7 @@ public class ApplicationPagesRoutesController {
|
|||||||
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
||||||
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
||||||
model.addAttribute("clientId", clientId);
|
model.addAttribute("clientId", clientId);
|
||||||
|
model.addAttribute("currentLocale", LocaleContextHolder.getLocale().toString());
|
||||||
return "client/viewClientAccount";
|
return "client/viewClientAccount";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,6 +78,9 @@ public class ApplicationPagesRoutesController {
|
|||||||
BasicAuthUserDetails userDetails = (BasicAuthUserDetails) authentication.getPrincipal();
|
BasicAuthUserDetails userDetails = (BasicAuthUserDetails) authentication.getPrincipal();
|
||||||
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
||||||
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
||||||
|
|
||||||
|
model.addAttribute("currentLocale", LocaleContextHolder.getLocale().toString());
|
||||||
|
|
||||||
return "admin/userhome";
|
return "admin/userhome";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,6 +90,9 @@ public class ApplicationPagesRoutesController {
|
|||||||
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
||||||
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
||||||
model.addAttribute("userId", userDetails.getUserId());
|
model.addAttribute("userId", userDetails.getUserId());
|
||||||
|
|
||||||
|
model.addAttribute("currentLocale", LocaleContextHolder.getLocale().toString());
|
||||||
|
|
||||||
return "admin/accountsettings";
|
return "admin/accountsettings";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -95,6 +104,8 @@ public class ApplicationPagesRoutesController {
|
|||||||
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
||||||
model.addAttribute("clientId", clientId);
|
model.addAttribute("clientId", clientId);
|
||||||
|
|
||||||
|
model.addAttribute("currentLocale", LocaleContextHolder.getLocale().toString());
|
||||||
|
|
||||||
return "newloanapplication";
|
return "newloanapplication";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,6 +116,8 @@ public class ApplicationPagesRoutesController {
|
|||||||
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
model.addAttribute("basicAuthKey", userDetails.getBasicAuthenticationKey());
|
||||||
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
model.addAttribute("baseApiUrl", userDetails.getFullApiUrl());
|
||||||
|
|
||||||
|
model.addAttribute("currentLocale", LocaleContextHolder.getLocale().toString());
|
||||||
|
|
||||||
return "reports/flexireport";
|
return "reports/flexireport";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-1
@@ -27,7 +27,9 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
// these helpers are registered for the jsViews and jsRender functionality to fix bug with display zero!
|
// these helpers are registered for the jsViews and jsRender functionality to fix bug with display zero!
|
||||||
$.views.registerHelpers({
|
$.views.registerHelpers({
|
||||||
|
currentLocale: function() {
|
||||||
|
return "${currentLocale}";
|
||||||
|
},
|
||||||
money: function(monetaryObj) {
|
money: function(monetaryObj) {
|
||||||
|
|
||||||
Globalize.culture().numberFormat.currency.symbol = monetaryObj.displaySymbol;
|
Globalize.culture().numberFormat.currency.symbol = monetaryObj.displaySymbol;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
globalDate: function(dateParts) {
|
globalDate: function(dateParts) {
|
||||||
try {
|
try {
|
||||||
|
if (dateParts === 'undefined' || dateParts === undefined) return "";
|
||||||
if (dateParts === null || dateParts === '') return "";
|
if (dateParts === null || dateParts === '') return "";
|
||||||
|
|
||||||
var year = dateParts[0];
|
var year = dateParts[0];
|
||||||
@@ -69,7 +69,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
return Globalize.format(d,"dd MMMM yyyy");
|
return Globalize.format(d,"dd MMMM yyyy");
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
return "??";
|
return dateParts + " ??";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
globalDateAsISOString: function(localDateAsISOString) {
|
globalDateAsISOString: function(localDateAsISOString) {
|
||||||
|
|||||||
@@ -57,6 +57,8 @@
|
|||||||
<input type="hidden" id="clientId" name="clientId" value="{{=clientId}}" />
|
<input type="hidden" id="clientId" name="clientId" value="{{=clientId}}" />
|
||||||
<input type="hidden" id="currencyCode" name="currencyCode" value="{{=selectedProduct.principal.currencyCode}}" />
|
<input type="hidden" id="currencyCode" name="currencyCode" value="{{=selectedProduct.principal.currencyCode}}" />
|
||||||
<input type="hidden" id="digitsAfterDecimal" name="digitsAfterDecimal" value="{{=$ctx.number(selectedProduct.principal.digitsAfterDecimal)}}" />
|
<input type="hidden" id="digitsAfterDecimal" name="digitsAfterDecimal" value="{{=$ctx.number(selectedProduct.principal.digitsAfterDecimal)}}" />
|
||||||
|
<input type="hidden" id="dateFormat" name="dateFormat" value="dd MMMM yyyy" />
|
||||||
|
<input type="hidden" id="locale" name="locale" value="${currentLocale}" />
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><spring:message code="form.legend.loan.information"/></legend>
|
<legend><spring:message code="form.legend.loan.information"/></legend>
|
||||||
@@ -83,7 +85,6 @@
|
|||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;vertical-align:bottom;width:50px;"> </td>
|
<td style="text-align:right;vertical-align:bottom;width:50px;"> </td>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
<input type="hidden" id="dateFormat" name="dateFormat" value="dd MMMM yyyy" />
|
|
||||||
<label for="submittedOnDate"><spring:message code="form.label.loan.submitted.on"/></label>
|
<label for="submittedOnDate"><spring:message code="form.label.loan.submitted.on"/></label>
|
||||||
<input id="submittedOnDate" name="submittedOnDate" title="" type="text" class="datepickerfield" value="{{=$ctx.globalDate(submittedOnDate)}}" />
|
<input id="submittedOnDate" name="submittedOnDate" title="" type="text" class="datepickerfield" value="{{=$ctx.globalDate(submittedOnDate)}}" />
|
||||||
|
|
||||||
@@ -826,6 +827,8 @@
|
|||||||
<div id="formerrors"></div>
|
<div id="formerrors"></div>
|
||||||
|
|
||||||
<input type="hidden" id="dateFormat" name="dateFormat" value="dd MMMM yyyy" />
|
<input type="hidden" id="dateFormat" name="dateFormat" value="dd MMMM yyyy" />
|
||||||
|
<input type="hidden" id="locale" name="locale" value="{{=$ctx.currentLocale()}}" />
|
||||||
|
|
||||||
<label for="transactionDate"><spring:message code="label.loan.transaction.on"/></label>
|
<label for="transactionDate"><spring:message code="label.loan.transaction.on"/></label>
|
||||||
<input id="transactionDate" name="transactionDate" class="text ui-widget-content ui-corner-all datepickerfield" title=""d value="{{=$ctx.globalDate(date)}}"/>
|
<input id="transactionDate" name="transactionDate" class="text ui-widget-content ui-corner-all datepickerfield" title=""d value="{{=$ctx.globalDate(date)}}"/>
|
||||||
|
|
||||||
|
|||||||
@@ -4,63 +4,30 @@ import java.io.Serializable;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
|
|
||||||
import org.codehaus.jackson.map.annotate.JsonFilter;
|
import org.codehaus.jackson.map.annotate.JsonFilter;
|
||||||
import org.joda.time.LocalDate;
|
import org.joda.time.LocalDate;
|
||||||
import org.mifosng.data.LoanSchedule;
|
import org.mifosng.data.LoanSchedule;
|
||||||
|
|
||||||
@JsonIgnoreProperties({ "organisationId", "organisationName" })
|
|
||||||
@JsonFilter("myFilter")
|
@JsonFilter("myFilter")
|
||||||
public class NewLoanData implements Serializable {
|
public class NewLoanData implements Serializable {
|
||||||
|
|
||||||
private Long organisationId;
|
|
||||||
private String organisationName;
|
|
||||||
private Long clientId;
|
private Long clientId;
|
||||||
private String clientName;
|
private String clientName;
|
||||||
private Long productId;
|
private Long productId;
|
||||||
private String productName;
|
private String productName;
|
||||||
|
|
||||||
private List<LoanProductLookup> allowedProducts = new ArrayList<LoanProductLookup>();
|
private LoanProductData selectedProduct;
|
||||||
|
|
||||||
// extra
|
private LocalDate expectedDisbursementDate;
|
||||||
private String dateFormat;
|
|
||||||
private String submittedOnDateFormatted;
|
|
||||||
private LocalDate submittedOnDate;
|
|
||||||
private String submittedOnNote = "";
|
|
||||||
|
|
||||||
private String expectedDisbursementDateFormatted;
|
|
||||||
private LocalDate expectedDisbursementDate = new LocalDate();
|
|
||||||
|
|
||||||
private String repaymentsStartingFromDateFormatted;
|
|
||||||
private LocalDate repaymentsStartingFromDate;
|
|
||||||
|
|
||||||
private String interestCalculatedFromDateFormatted;
|
|
||||||
private LocalDate interestCalculatedFromDate;
|
|
||||||
|
|
||||||
private LoanSchedule repaymentSchedule;
|
private LoanSchedule repaymentSchedule;
|
||||||
|
|
||||||
private LoanProductData selectedProduct;
|
private List<LoanProductLookup> allowedProducts = new ArrayList<LoanProductLookup>();
|
||||||
|
|
||||||
public NewLoanData() {
|
public NewLoanData() {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getOrganisationId() {
|
|
||||||
return organisationId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOrganisationId(Long organisationId) {
|
|
||||||
this.organisationId = organisationId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOrganisationName() {
|
|
||||||
return organisationName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOrganisationName(String organisationName) {
|
|
||||||
this.organisationName = organisationName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getClientId() {
|
public Long getClientId() {
|
||||||
return clientId;
|
return clientId;
|
||||||
}
|
}
|
||||||
@@ -101,22 +68,6 @@ public class NewLoanData implements Serializable {
|
|||||||
this.allowedProducts = allowedProducts;
|
this.allowedProducts = allowedProducts;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LocalDate getSubmittedOnDate() {
|
|
||||||
return submittedOnDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSubmittedOnDate(LocalDate submittedOnDate) {
|
|
||||||
this.submittedOnDate = submittedOnDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSubmittedOnNote() {
|
|
||||||
return submittedOnNote;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSubmittedOnNote(String submittedOnNote) {
|
|
||||||
this.submittedOnNote = submittedOnNote;
|
|
||||||
}
|
|
||||||
|
|
||||||
public LoanProductData getSelectedProduct() {
|
public LoanProductData getSelectedProduct() {
|
||||||
return selectedProduct;
|
return selectedProduct;
|
||||||
}
|
}
|
||||||
@@ -125,32 +76,6 @@ public class NewLoanData implements Serializable {
|
|||||||
this.selectedProduct = selectedProduct;
|
this.selectedProduct = selectedProduct;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LocalDate getExpectedDisbursementDate() {
|
|
||||||
return expectedDisbursementDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setExpectedDisbursementDate(LocalDate expectedDisbursementDate) {
|
|
||||||
this.expectedDisbursementDate = expectedDisbursementDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public LocalDate getRepaymentsStartingFromDate() {
|
|
||||||
return repaymentsStartingFromDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRepaymentsStartingFromDate(
|
|
||||||
LocalDate repaymentsStartingFromDate) {
|
|
||||||
this.repaymentsStartingFromDate = repaymentsStartingFromDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public LocalDate getInterestCalculatedFromDate() {
|
|
||||||
return interestCalculatedFromDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setInterestCalculatedFromDate(
|
|
||||||
LocalDate interestCalculatedFromDate) {
|
|
||||||
this.interestCalculatedFromDate = interestCalculatedFromDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public LoanSchedule getRepaymentSchedule() {
|
public LoanSchedule getRepaymentSchedule() {
|
||||||
return repaymentSchedule;
|
return repaymentSchedule;
|
||||||
}
|
}
|
||||||
@@ -159,46 +84,11 @@ public class NewLoanData implements Serializable {
|
|||||||
this.repaymentSchedule = repaymentSchedule;
|
this.repaymentSchedule = repaymentSchedule;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDateFormat() {
|
public LocalDate getExpectedDisbursementDate() {
|
||||||
return dateFormat;
|
return expectedDisbursementDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDateFormat(String dateFormat) {
|
public void setExpectedDisbursementDate(LocalDate expectedDisbursementDate) {
|
||||||
this.dateFormat = dateFormat;
|
this.expectedDisbursementDate = expectedDisbursementDate;
|
||||||
}
|
|
||||||
|
|
||||||
public String getSubmittedOnDateFormatted() {
|
|
||||||
return submittedOnDateFormatted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSubmittedOnDateFormatted(String submittedOnDateFormatted) {
|
|
||||||
this.submittedOnDateFormatted = submittedOnDateFormatted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getExpectedDisbursementDateFormatted() {
|
|
||||||
return expectedDisbursementDateFormatted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setExpectedDisbursementDateFormatted(
|
|
||||||
String expectedDisbursementDateFormatted) {
|
|
||||||
this.expectedDisbursementDateFormatted = expectedDisbursementDateFormatted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRepaymentsStartingFromDateFormatted() {
|
|
||||||
return repaymentsStartingFromDateFormatted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRepaymentsStartingFromDateFormatted(
|
|
||||||
String repaymentsStartingFromDateFormatted) {
|
|
||||||
this.repaymentsStartingFromDateFormatted = repaymentsStartingFromDateFormatted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getInterestCalculatedFromDateFormatted() {
|
|
||||||
return interestCalculatedFromDateFormatted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setInterestCalculatedFromDateFormatted(
|
|
||||||
String interestCalculatedFromDateFormatted) {
|
|
||||||
this.interestCalculatedFromDateFormatted = interestCalculatedFromDateFormatted;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+14
-31
@@ -22,7 +22,6 @@ import org.mifosng.platform.currency.domain.ApplicationCurrencyRepository;
|
|||||||
import org.mifosng.platform.currency.domain.Money;
|
import org.mifosng.platform.currency.domain.Money;
|
||||||
import org.mifosng.platform.exceptions.CurrencyNotFoundException;
|
import org.mifosng.platform.exceptions.CurrencyNotFoundException;
|
||||||
import org.mifosng.platform.exceptions.LoanNotFoundException;
|
import org.mifosng.platform.exceptions.LoanNotFoundException;
|
||||||
import org.mifosng.platform.exceptions.LoanProductNotFoundException;
|
|
||||||
import org.mifosng.platform.exceptions.LoanTransactionNotFoundException;
|
import org.mifosng.platform.exceptions.LoanTransactionNotFoundException;
|
||||||
import org.mifosng.platform.loan.domain.Loan;
|
import org.mifosng.platform.loan.domain.Loan;
|
||||||
import org.mifosng.platform.loan.domain.LoanRepository;
|
import org.mifosng.platform.loan.domain.LoanRepository;
|
||||||
@@ -176,60 +175,44 @@ public class LoanReadPlatformServiceImpl implements LoanReadPlatformService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public NewLoanData retrieveClientAndProductDetails(final Long clientId,
|
public NewLoanData retrieveClientAndProductDetails(final Long clientId, final Long productId) {
|
||||||
final Long productId) {
|
|
||||||
|
|
||||||
AppUser currentUser = context.authenticatedUser();
|
context.authenticatedUser();
|
||||||
|
|
||||||
NewLoanData workflowData = new NewLoanData();
|
NewLoanData workflowData = new NewLoanData();
|
||||||
workflowData.setOrganisationId(currentUser.getOrganisation().getId());
|
|
||||||
workflowData.setOrganisationName(currentUser.getOrganisation()
|
|
||||||
.getName());
|
|
||||||
|
|
||||||
Collection<LoanProductLookup> loanProducts = this.loanProductReadPlatformService
|
Collection<LoanProductLookup> loanProducts = this.loanProductReadPlatformService.retrieveAllLoanProductsForLookup();
|
||||||
.retrieveAllLoanProductsForLookup();
|
workflowData.setAllowedProducts(new ArrayList<LoanProductLookup>(loanProducts));
|
||||||
workflowData.setAllowedProducts(new ArrayList<LoanProductLookup>(
|
|
||||||
loanProducts));
|
|
||||||
|
|
||||||
if (loanProducts.size() == 1) {
|
if (loanProducts.size() == 1) {
|
||||||
Long allowedProductId = workflowData.getAllowedProducts().get(0)
|
Long allowedProductId = workflowData.getAllowedProducts().get(0).getId();
|
||||||
.getId();
|
LoanProductData selectedProduct = this.loanProductReadPlatformService.retrieveLoanProduct(allowedProductId);
|
||||||
LoanProductData selectedProduct = this.loanProductReadPlatformService
|
|
||||||
.retrieveLoanProduct(allowedProductId);
|
|
||||||
if (selectedProduct == null) {
|
|
||||||
throw new LoanProductNotFoundException(allowedProductId);
|
|
||||||
}
|
|
||||||
|
|
||||||
workflowData.setProductId(selectedProduct.getId());
|
workflowData.setProductId(selectedProduct.getId());
|
||||||
workflowData.setProductName(selectedProduct.getName());
|
workflowData.setProductName(selectedProduct.getName());
|
||||||
workflowData.setSelectedProduct(selectedProduct);
|
workflowData.setSelectedProduct(selectedProduct);
|
||||||
} else {
|
} else {
|
||||||
LoanProductData selectedProduct = findLoanProductById(loanProducts,
|
LoanProductData selectedProduct = findLoanProductById(loanProducts, productId);
|
||||||
productId);
|
|
||||||
if (selectedProduct == null) {
|
|
||||||
throw new LoanProductNotFoundException(productId);
|
|
||||||
}
|
|
||||||
workflowData.setProductId(selectedProduct.getId());
|
workflowData.setProductId(selectedProduct.getId());
|
||||||
workflowData.setProductName(selectedProduct.getName());
|
workflowData.setProductName(selectedProduct.getName());
|
||||||
workflowData.setSelectedProduct(selectedProduct);
|
workflowData.setSelectedProduct(selectedProduct);
|
||||||
}
|
}
|
||||||
|
|
||||||
ClientData clientAccount = this.clientReadPlatformService
|
ClientData clientAccount = this.clientReadPlatformService.retrieveIndividualClient(clientId);
|
||||||
.retrieveIndividualClient(clientId);
|
|
||||||
workflowData.setClientId(clientAccount.getId());
|
workflowData.setClientId(clientAccount.getId());
|
||||||
workflowData.setClientName(clientAccount.getDisplayName());
|
workflowData.setClientName(clientAccount.getDisplayName());
|
||||||
|
|
||||||
|
workflowData.setExpectedDisbursementDate(new LocalDate());
|
||||||
|
|
||||||
return workflowData;
|
return workflowData;
|
||||||
}
|
}
|
||||||
|
|
||||||
private LoanProductData findLoanProductById(
|
private LoanProductData findLoanProductById(Collection<LoanProductLookup> loanProducts, Long productId) {
|
||||||
Collection<LoanProductLookup> loanProducts, Long productId) {
|
LoanProductData match = this.loanProductReadPlatformService.retrieveNewLoanProductDetails();
|
||||||
LoanProductData match = this.loanProductReadPlatformService
|
|
||||||
.retrieveNewLoanProductDetails();
|
|
||||||
for (LoanProductLookup loanProductLookup : loanProducts) {
|
for (LoanProductLookup loanProductLookup : loanProducts) {
|
||||||
if (loanProductLookup.getId().equals(productId)) {
|
if (loanProductLookup.getId().equals(productId)) {
|
||||||
match = this.loanProductReadPlatformService
|
match = this.loanProductReadPlatformService.retrieveLoanProduct(loanProductLookup.getId());
|
||||||
.retrieveLoanProduct(loanProductLookup.getId());
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user