Class AssetGroup
- java.lang.Object
-
- org.openbravo.base.structure.BaseOBObject
-
- org.openbravo.model.financialmgmt.assetmgmt.AssetGroup
-
- All Implemented Interfaces:
Serializable
,BaseOBObjectDef
,OBNotSingleton
,OBProvidable
,ActiveEnabled
,ClientEnabled
,DynamicEnabled
,Identifiable
,OrganizationEnabled
,Traceable
public class AssetGroup extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled
Entity class for entity FinancialMgmtAssetGroup (stored in table A_Asset_Group).
Help: The group of assets determines default accounts. If a asset group is selected in the product category, assets are created when delivering the asset.
NOTE: This class should not be instantiated directly. To instantiate this class theOBProvider
should be used.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_NAME
static String
PROPERTY_ACTIVE
Property active stored in column IsActive in table A_Asset_Groupstatic String
PROPERTY_AMORTIZE
Property amortize stored in column Assetschedule in table A_Asset_Group
Help: Refers to the periods chosen between depreciation entries (monthly, yearly...).static String
PROPERTY_ANNUALDEPRECIATION
Property annualDepreciation stored in column Annualamortizationpercentage in table A_Asset_Group
Help: Anual percentage used to depreciate this asset.static String
PROPERTY_CALCULATETYPE
Property calculateType stored in column Amortizationcalctype in table A_Asset_Group
Help: This field indicates how depreciation will be calculated: choosing the time or the percentage.static String
PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table A_Asset_Groupstatic String
PROPERTY_CREATEDBY
Property createdBy stored in column CreatedBy in table A_Asset_Groupstatic String
PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table A_Asset_Groupstatic String
PROPERTY_DEPRECIATE
Property depreciate stored in column IsDepreciated in table A_Asset_Group
Help: The asset is used internally and will be depreciatedstatic String
PROPERTY_DEPRECIATIONTYPE
Property depreciationType stored in column Amortizationtype in table A_Asset_Group
Help: Indicates the method used to depreciate this asset.static String
PROPERTY_DESCRIPTION
Property description stored in column Description in table A_Asset_Group
Help: A description is limited to 255 characters.static String
PROPERTY_EVERYMONTHIS30DAYS
Property everyMonthIs30Days stored in column Is30DayMonth in table A_Asset_Group
Help: When calculating the amortization plan every month will be considered as a 30 day month.static String
PROPERTY_FINANCIALMGMTASSETGROUPACCTLIST
Property financialMgmtAssetGroupAcctList stored in table A_Asset_Groupstatic String
PROPERTY_HELPCOMMENT
Property helpComment stored in column Help in table A_Asset_Group
Help: The Help field contains a hint, comment or help about the use of this item.static String
PROPERTY_ID
Property id stored in column A_Asset_Group_ID in table A_Asset_Group
Help: The group of assets determines default accounts. If an asset group is selected in the product category, assets are created when delivering the asset.static String
PROPERTY_NAME
Property name stored in column Name in table A_Asset_Groupstatic String
PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table A_Asset_Groupstatic String
PROPERTY_OWNED
Property owned stored in column Isowned in table A_Asset_Group
Help: The asset may not be in possession, but the asset is legally owned by the organizationstatic String
PROPERTY_UPDATED
Property updated stored in column Updated in table A_Asset_Groupstatic String
PROPERTY_UPDATEDBY
Property updatedBy stored in column UpdatedBy in table A_Asset_Groupstatic String
PROPERTY_USABLELIFEMONTHS
Property usableLifeMonths stored in column UseLifeMonths in table A_Asset_Group
Help: Months of the usable life of the assetstatic String
PROPERTY_USABLELIFEYEARS
Property usableLifeYears stored in column UseLifeYears in table A_Asset_Group
Help: Years of the usable life of the assetstatic String
TABLE_NAME
-
Fields inherited from class org.openbravo.base.structure.BaseOBObject
ID
-
-
Constructor Summary
Constructors Constructor Description AssetGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAmortize()
BigDecimal
getAnnualDepreciation()
String
getCalculateType()
Client
getClient()
Client fieldUser
getCreatedBy()
Created by audit userDate
getCreationDate()
Creation date of auditString
getDepreciationType()
String
getDescription()
String
getEntityName()
List<AssetGroupAcct>
getFinancialMgmtAssetGroupAcctList()
Help: Defines the default accounts for any asset that references this group.String
getHelpComment()
String
getId()
String
getName()
Organization
getOrganization()
Gets organization fieldDate
getUpdated()
Update date of auditUser
getUpdatedBy()
Update by audit userLong
getUsableLifeMonths()
Long
getUsableLifeYears()
Boolean
isActive()
Gets active fieldBoolean
isDepreciate()
Boolean
isEveryMonthIs30Days()
Boolean
isOwned()
void
setActive(Boolean active)
Sets active fieldvoid
setAmortize(String amortize)
void
setAnnualDepreciation(BigDecimal annualDepreciation)
void
setCalculateType(String calculateType)
void
setClient(Client client)
Client fieldvoid
setCreatedBy(User createdBy)
Created by audit uservoid
setCreationDate(Date creationDate)
Creation date of auditvoid
setDepreciate(Boolean depreciate)
void
setDepreciationType(String depreciationType)
void
setDescription(String description)
void
setEveryMonthIs30Days(Boolean everyMonthIs30Days)
void
setFinancialMgmtAssetGroupAcctList(List<AssetGroupAcct> financialMgmtAssetGroupAcctList)
Help: Defines the default accounts for any asset that references this group.void
setHelpComment(String helpComment)
void
setId(String id)
void
setName(String name)
void
setOrganization(Organization organization)
Sets organization fieldvoid
setOwned(Boolean owned)
void
setUpdated(Date updated)
Update date of auditvoid
setUpdatedBy(User updatedBy)
Update by audit uservoid
setUsableLifeMonths(Long usableLifeMonths)
void
setUsableLifeYears(Long usableLifeYears)
-
Methods inherited from class org.openbravo.base.structure.BaseOBObject
checkDerivedReadable, get, get, get, getEntity, getIdentifier, getValue, isAllowRead, isNewOBObject, isOrgClientAccessCheckEnabled, isWriteAccessCheckEnabled, set, setAccessChecks, setAllowRead, setDefaultValue, setId, setNewOBObject, setValue, toString, validate
-
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
ENTITY_NAME
public static final String ENTITY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_ID
public static final String PROPERTY_ID
Property id stored in column A_Asset_Group_ID in table A_Asset_Group
Help: The group of assets determines default accounts. If an asset group is selected in the product category, assets are created when delivering the asset.- See Also:
- Constant Field Values
-
PROPERTY_CLIENT
public static final String PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table A_Asset_Group- See Also:
ClientEnabled
, Constant Field Values
-
PROPERTY_ORGANIZATION
public static final String PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table A_Asset_Group- See Also:
OrganizationEnabled
, Constant Field Values
-
PROPERTY_ACTIVE
public static final String PROPERTY_ACTIVE
Property active stored in column IsActive in table A_Asset_Group- See Also:
ActiveEnabled
, Constant Field Values
-
PROPERTY_CREATIONDATE
public static final String PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table A_Asset_Group- See Also:
Traceable
, Constant Field Values
-
PROPERTY_CREATEDBY
public static final String PROPERTY_CREATEDBY
Property createdBy stored in column CreatedBy in table A_Asset_Group- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATED
public static final String PROPERTY_UPDATED
Property updated stored in column Updated in table A_Asset_Group- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATEDBY
public static final String PROPERTY_UPDATEDBY
Property updatedBy stored in column UpdatedBy in table A_Asset_Group- See Also:
Traceable
, Constant Field Values
-
PROPERTY_NAME
public static final String PROPERTY_NAME
Property name stored in column Name in table A_Asset_Group- See Also:
- Constant Field Values
-
PROPERTY_DESCRIPTION
public static final String PROPERTY_DESCRIPTION
Property description stored in column Description in table A_Asset_Group
Help: A description is limited to 255 characters.- See Also:
- Constant Field Values
-
PROPERTY_HELPCOMMENT
public static final String PROPERTY_HELPCOMMENT
Property helpComment stored in column Help in table A_Asset_Group
Help: The Help field contains a hint, comment or help about the use of this item.- See Also:
- Constant Field Values
-
PROPERTY_OWNED
public static final String PROPERTY_OWNED
Property owned stored in column Isowned in table A_Asset_Group
Help: The asset may not be in possession, but the asset is legally owned by the organization- See Also:
- Constant Field Values
-
PROPERTY_DEPRECIATE
public static final String PROPERTY_DEPRECIATE
Property depreciate stored in column IsDepreciated in table A_Asset_Group
Help: The asset is used internally and will be depreciated- See Also:
- Constant Field Values
-
PROPERTY_DEPRECIATIONTYPE
public static final String PROPERTY_DEPRECIATIONTYPE
Property depreciationType stored in column Amortizationtype in table A_Asset_Group
Help: Indicates the method used to depreciate this asset.- See Also:
- Constant Field Values
-
PROPERTY_CALCULATETYPE
public static final String PROPERTY_CALCULATETYPE
Property calculateType stored in column Amortizationcalctype in table A_Asset_Group
Help: This field indicates how depreciation will be calculated: choosing the time or the percentage.- See Also:
- Constant Field Values
-
PROPERTY_ANNUALDEPRECIATION
public static final String PROPERTY_ANNUALDEPRECIATION
Property annualDepreciation stored in column Annualamortizationpercentage in table A_Asset_Group
Help: Anual percentage used to depreciate this asset.- See Also:
- Constant Field Values
-
PROPERTY_AMORTIZE
public static final String PROPERTY_AMORTIZE
Property amortize stored in column Assetschedule in table A_Asset_Group
Help: Refers to the periods chosen between depreciation entries (monthly, yearly...).- See Also:
- Constant Field Values
-
PROPERTY_USABLELIFEYEARS
public static final String PROPERTY_USABLELIFEYEARS
Property usableLifeYears stored in column UseLifeYears in table A_Asset_Group
Help: Years of the usable life of the asset- See Also:
- Constant Field Values
-
PROPERTY_USABLELIFEMONTHS
public static final String PROPERTY_USABLELIFEMONTHS
Property usableLifeMonths stored in column UseLifeMonths in table A_Asset_Group
Help: Months of the usable life of the asset- See Also:
- Constant Field Values
-
PROPERTY_EVERYMONTHIS30DAYS
public static final String PROPERTY_EVERYMONTHIS30DAYS
Property everyMonthIs30Days stored in column Is30DayMonth in table A_Asset_Group
Help: When calculating the amortization plan every month will be considered as a 30 day month.- See Also:
- Constant Field Values
-
PROPERTY_FINANCIALMGMTASSETGROUPACCTLIST
public static final String PROPERTY_FINANCIALMGMTASSETGROUPACCTLIST
Property financialMgmtAssetGroupAcctList stored in table A_Asset_Group- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntityName
public String getEntityName()
- Specified by:
getEntityName
in interfaceIdentifiable
- Specified by:
getEntityName
in classBaseOBObject
-
getId
public String getId()
- Specified by:
getId
in interfaceBaseOBObjectDef
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classBaseOBObject
- See Also:
PROPERTY_ID
-
setId
public void setId(String id)
- See Also:
PROPERTY_ID
-
getClient
public Client getClient()
Description copied from interface:ClientEnabled
Client field- Specified by:
getClient
in interfaceClientEnabled
- Returns:
- client
- See Also:
PROPERTY_CLIENT
-
setClient
public void setClient(Client client)
Description copied from interface:ClientEnabled
Client field- Specified by:
setClient
in interfaceClientEnabled
- See Also:
PROPERTY_CLIENT
-
getOrganization
public Organization getOrganization()
Description copied from interface:OrganizationEnabled
Gets organization field- Specified by:
getOrganization
in interfaceOrganizationEnabled
- Returns:
- organization
- See Also:
PROPERTY_ORGANIZATION
-
setOrganization
public void setOrganization(Organization organization)
Description copied from interface:OrganizationEnabled
Sets organization field- Specified by:
setOrganization
in interfaceOrganizationEnabled
- See Also:
PROPERTY_ORGANIZATION
-
isActive
public Boolean isActive()
Description copied from interface:ActiveEnabled
Gets active field- Specified by:
isActive
in interfaceActiveEnabled
- Returns:
- active
- See Also:
PROPERTY_ACTIVE
-
setActive
public void setActive(Boolean active)
Description copied from interface:ActiveEnabled
Sets active field- Specified by:
setActive
in interfaceActiveEnabled
- See Also:
PROPERTY_ACTIVE
-
getCreationDate
public Date getCreationDate()
Description copied from interface:Traceable
Creation date of audit- Specified by:
getCreationDate
in interfaceTraceable
- Returns:
- Date of creation
- See Also:
PROPERTY_CREATIONDATE
-
setCreationDate
public void setCreationDate(Date creationDate)
Description copied from interface:Traceable
Creation date of audit- Specified by:
setCreationDate
in interfaceTraceable
- See Also:
PROPERTY_CREATIONDATE
-
getCreatedBy
public User getCreatedBy()
Description copied from interface:Traceable
Created by audit user- Specified by:
getCreatedBy
in interfaceTraceable
- Returns:
- User
- See Also:
PROPERTY_CREATEDBY
-
setCreatedBy
public void setCreatedBy(User createdBy)
Description copied from interface:Traceable
Created by audit user- Specified by:
setCreatedBy
in interfaceTraceable
- See Also:
PROPERTY_CREATEDBY
-
getUpdated
public Date getUpdated()
Description copied from interface:Traceable
Update date of audit- Specified by:
getUpdated
in interfaceTraceable
- Returns:
- Date of update
- See Also:
PROPERTY_UPDATED
-
setUpdated
public void setUpdated(Date updated)
Description copied from interface:Traceable
Update date of audit- Specified by:
setUpdated
in interfaceTraceable
- See Also:
PROPERTY_UPDATED
-
getUpdatedBy
public User getUpdatedBy()
Description copied from interface:Traceable
Update by audit user- Specified by:
getUpdatedBy
in interfaceTraceable
- Returns:
- User who updated
- See Also:
PROPERTY_UPDATEDBY
-
setUpdatedBy
public void setUpdatedBy(User updatedBy)
Description copied from interface:Traceable
Update by audit user- Specified by:
setUpdatedBy
in interfaceTraceable
- See Also:
PROPERTY_UPDATEDBY
-
getName
public String getName()
- See Also:
PROPERTY_NAME
-
setName
public void setName(String name)
- See Also:
PROPERTY_NAME
-
getDescription
public String getDescription()
- See Also:
PROPERTY_DESCRIPTION
-
setDescription
public void setDescription(String description)
- See Also:
PROPERTY_DESCRIPTION
-
getHelpComment
public String getHelpComment()
- See Also:
PROPERTY_HELPCOMMENT
-
setHelpComment
public void setHelpComment(String helpComment)
- See Also:
PROPERTY_HELPCOMMENT
-
isOwned
public Boolean isOwned()
- See Also:
PROPERTY_OWNED
-
setOwned
public void setOwned(Boolean owned)
- See Also:
PROPERTY_OWNED
-
isDepreciate
public Boolean isDepreciate()
- See Also:
PROPERTY_DEPRECIATE
-
setDepreciate
public void setDepreciate(Boolean depreciate)
- See Also:
PROPERTY_DEPRECIATE
-
getDepreciationType
public String getDepreciationType()
- See Also:
PROPERTY_DEPRECIATIONTYPE
-
setDepreciationType
public void setDepreciationType(String depreciationType)
- See Also:
PROPERTY_DEPRECIATIONTYPE
-
getCalculateType
public String getCalculateType()
- See Also:
PROPERTY_CALCULATETYPE
-
setCalculateType
public void setCalculateType(String calculateType)
- See Also:
PROPERTY_CALCULATETYPE
-
getAnnualDepreciation
public BigDecimal getAnnualDepreciation()
- See Also:
PROPERTY_ANNUALDEPRECIATION
-
setAnnualDepreciation
public void setAnnualDepreciation(BigDecimal annualDepreciation)
- See Also:
PROPERTY_ANNUALDEPRECIATION
-
getAmortize
public String getAmortize()
- See Also:
PROPERTY_AMORTIZE
-
setAmortize
public void setAmortize(String amortize)
- See Also:
PROPERTY_AMORTIZE
-
getUsableLifeYears
public Long getUsableLifeYears()
- See Also:
PROPERTY_USABLELIFEYEARS
-
setUsableLifeYears
public void setUsableLifeYears(Long usableLifeYears)
- See Also:
PROPERTY_USABLELIFEYEARS
-
getUsableLifeMonths
public Long getUsableLifeMonths()
- See Also:
PROPERTY_USABLELIFEMONTHS
-
setUsableLifeMonths
public void setUsableLifeMonths(Long usableLifeMonths)
- See Also:
PROPERTY_USABLELIFEMONTHS
-
isEveryMonthIs30Days
public Boolean isEveryMonthIs30Days()
- See Also:
PROPERTY_EVERYMONTHIS30DAYS
-
setEveryMonthIs30Days
public void setEveryMonthIs30Days(Boolean everyMonthIs30Days)
- See Also:
PROPERTY_EVERYMONTHIS30DAYS
-
getFinancialMgmtAssetGroupAcctList
public List<AssetGroupAcct> getFinancialMgmtAssetGroupAcctList()
Help: Defines the default accounts for any asset that references this group.- See Also:
AssetGroupAcct
-
setFinancialMgmtAssetGroupAcctList
public void setFinancialMgmtAssetGroupAcctList(List<AssetGroupAcct> financialMgmtAssetGroupAcctList)
Help: Defines the default accounts for any asset that references this group.- See Also:
AssetGroupAcct
-
-