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 {
  if (p_Amount == null || p_C_CurrencyFrom_ID == 0 || p_C_CurrencyTo_ID == 0)   return null;
  if (p_Amount.signum() == 0 || p_C_CurrencyFrom_ID == p_C_CurrencyTo_ID)   return p_Amount;
  BigDecimal rate=rate(p_C_CurrencyFrom_ID,p_C_CurrencyTo_ID,p_ConversionDate,p_C_ConversionType_ID,p_AD_Client_ID,p_AD_Org_ID);
  if (rate == null)   return null;
  return round(p_Amount.multiply(rate),p_C_CurrencyTo_ID,null);
}

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 { if ( p_Amount == null || p_C_CurrencyFrom_ID == 0 || p_C_CurrencyTo_ID == 0 ) return null ; if ( p_Amount . signum ( ) == 0 || p_C_CurrencyFrom_ID == p_C_CurrencyTo_ID ) return p_Amount ; BigDecimal rate = rate ( p_C_CurrencyFrom_ID , p_C_CurrencyTo_ID , p_ConversionDate , p_C_ConversionType_ID , p_AD_Client_ID , p_AD_Org_ID ) ; if ( rate == null ) return null ; return round ( p_Amount . multiply ( rate ) , p_C_CurrencyTo_ID , null ) ; }
convert amount to currency . previously : currencyconvert - now : currencyconvert
