public class Currency extends AbstractIdentifiedHibernateObject<Currency>
id
Constructor and Description |
---|
Currency()
Create a new instance of Currency
|
Modifier and Type | Method and Description |
---|---|
Double |
convertToForeign(Double value)
Convert the currency defined through the locale settings to ths currency
|
Double |
convertToLocal(Double value)
Convert the valie from the foreign currency to the local currency
|
String |
format(Double value)
Return a currency formatted string with the user defined symbol.
|
Double |
getConversion_rate()
POSper uses 'direct quotation': the conversion rate is the price of a foreign currency
unit in the base currency.
|
String |
getCurrency_code()
As currency code the 3 character ISO representation should be used.
|
String |
getSymbol()
Get the user defined symbol for this currency.
|
void |
setConversion_rate(Double conversion_rate)
Set the conversion rate in direct quotation.
|
void |
setCurrency_code(String currency_code)
Set the currency code.
|
void |
setSymbol(String symbol)
Set a user defined currency symbol.
|
String |
toString() |
equals, getId, getVersion, hashCode, setId, setVersion
delete, getGetters, getKeyValue, merge, refresh, save
public Double getConversion_rate()
public void setConversion_rate(Double conversion_rate)
conversion_rate
- public String getCurrency_code()
public void setCurrency_code(String currency_code)
currency_code
- public String getSymbol()
public void setSymbol(String symbol)
symbol
- public Double convertToForeign(Double value)
value
- public Double convertToLocal(Double value)
value
- in foreign currencyCopyright © 2021. All rights reserved.