Class MAssetGroupAcct

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_A_Asset_Group_Acct, I_Persistent, SetGetModel, Evaluatee, org.idempiere.fa.feature.UseLife

public class MAssetGroupAcct extends X_A_Asset_Group_Acct implements org.idempiere.fa.feature.UseLife
Asset Group Accounting Model
Author:
Teo Sarca, SC ARHIPAC SERVICE SRL
See Also:
  • Constructor Details

    • MAssetGroupAcct

      public MAssetGroupAcct(Properties ctx, String A_Asset_Group_Acct_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      A_Asset_Group_Acct_UU - UUID key
      trxName - Transaction
    • 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 Details

    • forA_Asset_Group_ID

      public static List<MAssetGroupAcct> forA_Asset_Group_ID(Properties ctx, int A_Asset_Group_ID)
      Deprecated.
      use the version with postingType and trxName
      Parameters:
      ctx -
      A_Asset_Group_ID -
      Returns:
    • forA_Asset_Group_ID

      public static List<MAssetGroupAcct> forA_Asset_Group_ID(Properties ctx, int A_Asset_Group_ID, String postingType)
      Deprecated.
      use the version with trxName
      Parameters:
      ctx -
      A_Asset_Group_ID -
      postingType -
      Returns:
    • forA_Asset_Group_ID

      public static List<MAssetGroupAcct> forA_Asset_Group_ID(Properties ctx, int A_Asset_Group_ID, String postingType, String trxName)
      Get Asset Group Accountings for given group
      Parameters:
      ctx -
      A_Asset_Group_ID -
      postingType -
      trxName -
      Returns:
      list of MAssetGroupAcct
    • getParent

      public MAssetGroup getParent()
      Get Asset Group
      Returns:
      MAssetGroup
    • 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
    • set_AttrValue

      public boolean set_AttrValue(String ColumnName, Object value)
      Specified by:
      set_AttrValue in interface SetGetModel
    • get_AttrValue

      public Object get_AttrValue(String ColumnName)
      Specified by:
      get_AttrValue in interface SetGetModel
    • is_AttrValueChanged

      public boolean is_AttrValueChanged(String ColumnName)
      Specified by:
      is_AttrValueChanged in interface SetGetModel
    • 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
      Parameters:
      ctx -
      A_Asset_Group_ID -
      postingType -
      C_AcctSchema_ID -
      Returns:
      MAssetGroupAcct