Class MDepreciationConvention

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

public class MDepreciationConvention extends X_A_Depreciation_Convention implements ImmutablePOSupport
Convention for the first year of depreciation (ex. FMCON, FYCON ...). Not fully implemented.
Version:
$Id$
Author:
Teo Sarca, SC Arhipac SRL
See Also:
  • Constructor Details

    • MDepreciationConvention

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

      public MDepreciationConvention(Properties ctx, int A_Depreciation_Convention_ID, String trxName)
      Default Constructor
      Parameters:
      ctx - context
      A_Depreciation_Convention_ID - id
      trxName - transaction name
    • MDepreciationConvention

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

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

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

      public MDepreciationConvention(Properties ctx, MDepreciationConvention copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • get

      public static MDepreciationConvention get(int A_Depreciation_Convention_ID)
      Get MDepreciationConvention from cache (immutable)
      Parameters:
      A_Depreciation_Convention_ID -
      Returns:
      MDepreciationConvention
    • get

      public static MDepreciationConvention get(Properties ctx, int A_Depreciation_Convention_ID)
      Get MDepreciationConvention from cache (immutable)
      Parameters:
      ctx - context
      A_Depreciation_Convention_ID -
      Returns:
      MDepreciationConvention
    • invoke

      public BigDecimal invoke(MDepreciationWorkfile assetwk, MAssetAcct assetAcct, int Flag, int Period)
      Parameters:
      assetwk -
      assetAcct -
      Flag -
      Period -
      Returns:
    • invoke

      public BigDecimal invoke(int A_Asset_ID, String PostingType, int A_Asset_Acct_ID, int Flag, int Period)
      Parameters:
      A_Asset_ID -
      PostingType -
      A_Asset_Acct_ID -
      Flag -
      Period -
      Returns:
      calculated value
    • apply_FMCON

      public BigDecimal apply_FMCON(int A_Asset_ID, String PostingType, int A_Asset_Acct_ID, int Flag, int Period)
      Parameters:
      A_Asset_ID -
      PostingType -
      A_Asset_Acct_ID -
      Flag -
      Period -
      Returns:
      always return 1
    • markImmutable

      public MDepreciationConvention markImmutable()
      Description copied from interface: ImmutablePOSupport
      mark PO as immutable
      Specified by:
      markImmutable in interface ImmutablePOSupport
      Returns:
      PO