|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.sqlj.Currency
public class Currency
SQLJ Currency related Functions
| Constructor Summary | |
|---|---|
Currency()
|
|
| Method Summary | |
|---|---|
static BigDecimal |
base(BigDecimal p_Amount,
int p_C_CurrencyFrom_ID,
Timestamp p_ConversionDate,
int p_AD_Client_ID,
int p_AD_Org_ID)
Convert Amount to base Currency. |
static BigDecimal |
convert(BigDecimal p_Amount,
int p_C_CurrencyFrom_ID,
int p_C_CurrencyTo_ID,
Timestamp p_ConversionDate,
int p_C_ConversionType_ID,
int p_AD_Client_ID,
int p_AD_Org_ID)
Convert Amount to Currency. |
static BigDecimal |
rate(int p_C_CurrencyFrom_ID,
int p_C_CurrencyTo_ID,
Timestamp p_ConversionDate,
int p_C_ConversionType_ID,
int p_AD_Client_ID,
int p_AD_Org_ID)
Get Conversion Rate. |
static BigDecimal |
round(BigDecimal p_Amount,
int p_C_Currency_ID,
String p_Costing)
Round amount to Currency precision. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Currency()
| Method Detail |
|---|
public static BigDecimal base(BigDecimal p_Amount,
int p_C_CurrencyFrom_ID,
Timestamp p_ConversionDate,
int p_AD_Client_ID,
int p_AD_Org_ID)
throws SQLException
p_Amount - amountp_C_CurrencyFrom_ID - from currencyp_ConversionDate - conversion datep_AD_Client_ID - clientp_AD_Org_ID - org
SQLException
public static BigDecimal convert(BigDecimal p_Amount,
int p_C_CurrencyFrom_ID,
int p_C_CurrencyTo_ID,
Timestamp p_ConversionDate,
int p_C_ConversionType_ID,
int p_AD_Client_ID,
int p_AD_Org_ID)
throws SQLException
p_Amount - amountp_C_CurrencyFrom_ID - from currencyp_C_CurrencyTo_ID - to currencyp_ConversionDate - conversion datep_C_ConversionType_ID - conversion typep_AD_Client_ID - clientp_AD_Org_ID - org
SQLException
public static BigDecimal rate(int p_C_CurrencyFrom_ID,
int p_C_CurrencyTo_ID,
Timestamp p_ConversionDate,
int p_C_ConversionType_ID,
int p_AD_Client_ID,
int p_AD_Org_ID)
throws SQLException
p_C_CurrencyFrom_ID - from currencyp_C_CurrencyTo_ID - to currencyp_ConversionDate - conversion datep_C_ConversionType_ID - conversion typep_AD_Client_ID - clientp_AD_Org_ID - org
SQLException
public static BigDecimal round(BigDecimal p_Amount,
int p_C_Currency_ID,
String p_Costing)
throws SQLException
p_Amount - amountp_C_Currency_ID - currencyp_Costing - Y if costing precision
SQLException
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||