public class DefaultB2BCurrencyConversionService extends AbstractBusinessService implements B2BCurrencyConversionService
B2BCurrencyConversionServiceAbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultB2BCurrencyConversionService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
convertAmount(java.lang.Double amount,
CurrencyModel sourceCurrency,
CurrencyModel targetCurrency)
Used to convert amount from one currency to another
|
java.lang.String |
formatCurrencyAmount(java.util.Locale locale,
CurrencyModel currency,
double amount)
Formats the currency amount for the correct locale
|
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplacepublic java.lang.Double convertAmount(java.lang.Double amount,
CurrencyModel sourceCurrency,
CurrencyModel targetCurrency)
B2BCurrencyConversionServiceconvertAmount in interface B2BCurrencyConversionServiceamount - the dollar amount to convertsourceCurrency - the current currency typetargetCurrency - the currency in which to convert topublic java.lang.String formatCurrencyAmount(java.util.Locale locale,
CurrencyModel currency,
double amount)
B2BCurrencyConversionServiceformatCurrencyAmount in interface B2BCurrencyConversionServicelocale - the local in which to format forcurrency - the currency typeamount - the dollar amountCopyright © 2018 SAP SE. All Rights Reserved.