Class MDepreciationMethod

    • Constructor Detail

      • MDepreciationMethod

        public MDepreciationMethod​(Properties ctx,
                                   int A_Depreciation_Method_ID,
                                   String trxName)
        Standard Constructor
      • MDepreciationMethod

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

        public MDepreciationMethod​(MDepreciationMethod copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MDepreciationMethod get​(int A_Depreciation_Method_ID)
        Get MDepreciationMethod from cache (immutable)
        Parameters:
        A_Depreciation_Method_ID -
        Returns:
        MDepreciationMethod
      • get

        public static MDepreciationMethod get​(Properties ctx,
                                              int A_Depreciation_Method_ID)
        Get MDepreciationMethod from cache (immutable)
        Parameters:
        ctx -
        A_Depreciation_Method_ID -
        Returns:
        MDepreciationMethod
      • get

        public static MDepreciationMethod get​(String depreciationType)
        Get MDepreciationMethod from cache
        Parameters:
        depreciationType -
        Returns:
        MDepreciationMethod
      • get

        public static MDepreciationMethod get​(Properties ctx,
                                              String depreciationType)
        Get MDepreciationMethod from cache (immutable)
        Parameters:
        ctx -
        depreciationType -
        Returns:
        MDepreciationMethod
      • invoke

        public BigDecimal invoke​(int A_Asset_ID,
                                 BigDecimal A_Asset_Adjustment,
                                 int A_PeriodNo,
                                 String PostingType,
                                 int A_Asset_Acct_ID)
        Calculate adjustment
        Returns:
        adjustment to be applied in the specified period
      • apply_MDI

        public BigDecimal apply_MDI​(int A_Asset_ID,
                                    BigDecimal A_Asset_Adjustment,
                                    int A_PeriodNo,
                                    String PostingType,
                                    int A_Asset_Acct_ID)
        MDI - adjustment is made ​​in the current month
      • apply_YDI

        public BigDecimal apply_YDI​(int A_Asset_ID,
                                    BigDecimal A_Asset_Adjustment,
                                    int A_PeriodNo,
                                    String PostingType,
                                    int A_Asset_Acct_ID)
        YDI -adjustment is made ​​for periods of the year remains
      • apply_LDI

        public BigDecimal apply_LDI​(int A_Asset_ID,
                                    BigDecimal A_Asset_Adjustment,
                                    int A_PeriodNo,
                                    String PostingType,
                                    int A_Asset_Acct_ID)
        LDI - adjustment is made ​​on the remaining life