|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCOM.ibm.db2.app.UDF
org.compiere.udf.Currency
public class Currency
SQLJ Currency related Functions
| Field Summary |
|---|
| Fields inherited from class COM.ibm.db2.app.UDF |
|---|
SQLUDF_FIRST_CALL, SQLUDF_NORMAL_CALL, SQLUDF_TF_CLOSE, SQLUDF_TF_FETCH, SQLUDF_TF_FINAL, SQLUDF_TF_FIRST, SQLUDF_TF_OPEN |
| Constructor Summary | |
|---|---|
Currency()
|
|
| Method Summary | |
|---|---|
static double |
base(BigDecimal p_Amount,
int p_C_CurrencyFrom_ID,
Timestamp p_ConversionDate,
int p_AD_Client_ID,
int p_AD_Org_ID)
|
static double |
base(Connection conn,
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 double |
baseD(double 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 double |
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)
|
static double |
convertD(double 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 double |
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 double |
round(BigDecimal p_Amount,
int p_C_Currency_ID,
String p_Costing)
Round amount to Currency precision. |
| Methods inherited from class COM.ibm.db2.app.UDF |
|---|
close, getCallType, getConnection, getDBapplid, getDBauthid, getDBcodepg, getDBcolname, getDBinfo, getDBname, getDBplatform, getDBprocid, getDBtbname, getDBtbschema, getDBver_rel, getFunctionName, getScratchpad, getSpecificName, isNull, needToSet, set, set, set, set, set, set, set, set, set, set, set, setCodepage, setScratchpad, setSQLmessage, setSQLstate |
| 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 double baseD(double 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 double base(BigDecimal p_Amount,
int p_C_CurrencyFrom_ID,
Timestamp p_ConversionDate,
int p_AD_Client_ID,
int p_AD_Org_ID)
throws SQLException
SQLException
public static double base(Connection conn,
BigDecimal p_Amount,
int p_C_CurrencyFrom_ID,
Timestamp p_ConversionDate,
int p_AD_Client_ID,
int p_AD_Org_ID)
throws SQLException
conn - Connectionp_Amount - amountp_C_CurrencyFrom_ID - from currencyp_ConversionDate - conversion datep_AD_Client_ID - clientp_AD_Org_ID - org
SQLException
public static double convertD(double 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 double 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
SQLException
public static double 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 double 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
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||