FINERACT-2169: Refactor standing instruction history api controller;
This commit is contained in:
committed by
Adam Saghy
parent
2ba7e28108
commit
056a20f58e
+3
-2
@@ -20,6 +20,7 @@ package org.apache.fineract.portfolio.account.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Optional;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
@@ -69,7 +70,7 @@ public class PortfolioAccountData implements Serializable {
|
||||
this.amtForTransfer = null;
|
||||
}
|
||||
|
||||
public String getCurrencyCode() {
|
||||
return this.currency.getCode();
|
||||
public String getCurrencyCodeFromCurrency() {
|
||||
return Optional.ofNullable(getCurrency()).map(CurrencyData::getCode).orElse(null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user