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