Class MAssetGroupAcct

    • Constructor Detail

      • MAssetGroupAcct

        public MAssetGroupAcct​(Properties ctx,
                               int X_A_Asset_Group_Acct_ID,
                               String trxName)
        Default ConstructorX_A_Asset_Group_Acct
        Parameters:
        ctx - context
        X_A_Asset_Group_Acct_ID - id
      • MAssetGroupAcct

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

      • forA_Asset_Group_ID

        public static List<MAssetGroupAcct> forA_Asset_Group_ID​(Properties ctx,
                                                                int A_Asset_Group_ID)
        Get Asset Group Accountings for given group
      • forA_Asset_Group_ID

        public static List<MAssetGroupAcct> forA_Asset_Group_ID​(Properties ctx,
                                                                int A_Asset_Group_ID,
                                                                String postingType)
        Get Asset Group Accountings for given group
      • getParent

        public MAssetGroup getParent()
        Get Asset Group
      • getAssetServiceDate

        public Timestamp getAssetServiceDate()
        Specified by:
        getAssetServiceDate in interface org.idempiere.fa.feature.UseLife
      • copy

        public MAssetGroupAcct copy​(MAssetGroup grp)
        Clone this object, using specified group
        Parameters:
        grp - the new asset group
        Returns:
        new asset group accounting (NOTE: it's not saved)
      • beforeSave

        public 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
      • forA_Asset_Group_ID

        public static MAssetGroupAcct forA_Asset_Group_ID​(Properties ctx,
                                                          int A_Asset_Group_ID,
                                                          String postingType,
                                                          int C_AcctSchema_ID)
        Get Asset Group Accountings for given group