Class MConversionType

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_C_ConversionType, I_Persistent, Evaluatee

public class MConversionType extends X_C_ConversionType
Currency Conversion Type Model
Version:
$Id: MConversionType.java,v 1.3 2006/07/30 00:58:04 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Field Details

    • TYPE_SPOT

      public static final int TYPE_SPOT
      These static variables won't have to change unless we change the AD. I've added them here for convenience. Daniel Tamm [usrdno] 090528
      See Also:
    • TYPE_PERIOD_END

      public static final int TYPE_PERIOD_END
      See Also:
    • TYPE_AVERAGE

      public static final int TYPE_AVERAGE
      See Also:
    • TYPE_COMPANY

      public static final int TYPE_COMPANY
      See Also:
  • Constructor Details

    • MConversionType

      public MConversionType(Properties ctx, String C_ConversionType_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      C_ConversionType_UU - UUID key
      trxName - Transaction
    • MConversionType

      public MConversionType(Properties ctx, int C_ConversionType_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      C_ConversionType_ID - id
      trxName - transaction
    • MConversionType

      public MConversionType(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
    • MConversionType

      public MConversionType(MConversionType copy)
      Copy constructor
      Parameters:
      copy -
    • MConversionType

      public MConversionType(Properties ctx, MConversionType copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MConversionType

      public MConversionType(Properties ctx, MConversionType copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
    • MConversionType

      public MConversionType(Properties ctx, int C_ConversionType_ID, String trxName, String... virtualColumns)
      Parameters:
      ctx -
      C_ConversionType_ID -
      trxName -
      virtualColumns -
  • Method Details

    • getDefault

      public static int getDefault(int AD_Client_ID)
      Get Default Conversion Rate for Client/Org
      Parameters:
      AD_Client_ID - client
      Returns:
      C_ConversionType_ID or 0 if not found