Class MAssetAcct

    • Constructor Detail

      • MAssetAcct

        public MAssetAcct​(Properties ctx,
                          int X_A_Asset_Acct_ID,
                          String trxName)
        DO NOT USE DIRECTLY
      • MAssetAcct

        public MAssetAcct​(MAssetAcct copy)
        Parameters:
        copy -
      • MAssetAcct

        public MAssetAcct​(MAsset asset,
                          MAssetGroupAcct assetgrpacct)
        Create new asset accounting from asset group accounting
        Parameters:
        asset - asset
        assetgrpacct - asset group accounting
    • Method Detail

      • get

        public static MAssetAcct get​(int A_Asset_Acct_ID)
        Get Asset Accounting (from cache) (immutable)
        Parameters:
        A_Asset_Acct_ID - asset accounting id
        Returns:
        asset accounting or null if not found
      • get

        public static MAssetAcct get​(Properties ctx,
                                     int A_Asset_Acct_ID)
        Get Asset Accounting (from cache) (immutable)
        Parameters:
        ctx - context
        A_Asset_Acct_ID - asset accounting id
        Returns:
        asset accounting or null if not found
      • forA_Asset_ID

        public static MAssetAcct forA_Asset_ID​(Properties ctx,
                                               int C_AcctSchema_ID,
                                               int A_Asset_ID,
                                               String postingType,
                                               Timestamp dateAcct,
                                               String trxName)
        Get asset accounting.
        Parameters:
        ctx - context
        A_Asset_ID - asset
        postingType - Posting type
        dateAcct - check ValidFrom
        Returns:
        asset accounting for the given asset
      • getA_Depreciation_Variable_Perc

        public BigDecimal getA_Depreciation_Variable_Perc​(boolean fiscal)
      • getP_Asset_Acct

        public MAccount getP_Asset_Acct​(int M_Product_ID)
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved