MIFOSX-387: currency should not be included in response of list of product options for loan template.
This commit is contained in:
+2
-11
@@ -158,7 +158,7 @@ public class LoanProductData {
|
|||||||
final Long id = null;
|
final Long id = null;
|
||||||
final String name = null;
|
final String name = null;
|
||||||
final String description = null;
|
final String description = null;
|
||||||
final CurrencyData currency = null;
|
final CurrencyData currency = CurrencyData.blank();
|
||||||
final BigDecimal principal = null;
|
final BigDecimal principal = null;
|
||||||
final BigDecimal minPrincipal = null;
|
final BigDecimal minPrincipal = null;
|
||||||
final BigDecimal maxPrincipal = null;
|
final BigDecimal maxPrincipal = null;
|
||||||
@@ -210,19 +210,10 @@ public class LoanProductData {
|
|||||||
final EnumOptionData interestCalculationPeriodType, final Long fundId, final String fundName,
|
final EnumOptionData interestCalculationPeriodType, final Long fundId, final String fundName,
|
||||||
final Long transactionProcessingStrategyId, final String transactionProcessingStrategyName,
|
final Long transactionProcessingStrategyId, final String transactionProcessingStrategyName,
|
||||||
final Collection<ChargeData> charges, final EnumOptionData accountingType) {
|
final Collection<ChargeData> charges, final EnumOptionData accountingType) {
|
||||||
|
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
if (currency == null) {
|
this.currency = currency;
|
||||||
if (this.currencyOptions != null && this.currencyOptions.size() == 1) {
|
|
||||||
this.currency = new ArrayList<CurrencyData>(this.currencyOptions).get(0);
|
|
||||||
} else {
|
|
||||||
this.currency = CurrencyData.blank();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.currency = currency;
|
|
||||||
}
|
|
||||||
this.principal = principal;
|
this.principal = principal;
|
||||||
this.minPrincipal = minPrincipal;
|
this.minPrincipal = minPrincipal;
|
||||||
this.maxPrincipal = maxPrincipal;
|
this.maxPrincipal = maxPrincipal;
|
||||||
|
|||||||
Reference in New Issue
Block a user