Package org.compiere.model
Class MIFixedAsset
- java.lang.Object
-
- org.compiere.model.PO
-
- org.compiere.model.X_I_FixedAsset
-
- org.compiere.model.MIFixedAsset
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_I_FixedAsset
,I_Persistent
,Evaluatee
public class MIFixedAsset extends X_I_FixedAsset
- Version:
- $Id
- Author:
- Teo Sarca, SC ARHIPAC SRL
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.compiere.model.X_I_FixedAsset
DOCACTION_AD_Reference_ID, DOCACTION_Approve, DOCACTION_Close, DOCACTION_Complete, DOCACTION_Invalidate, DOCACTION_None, DOCACTION_Post, DOCACTION_Prepare, DOCACTION_Re_Activate, DOCACTION_Reject, DOCACTION_Reverse_Accrual, DOCACTION_Reverse_Correct, DOCACTION_Unlock, DOCACTION_Void, DOCACTION_WaitComplete
-
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, LOCAL_TRX_PREFIX, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
-
Fields inherited from interface org.compiere.model.I_I_FixedAsset
accessLevel, COLUMNNAME_A_Accumulated_Depr, COLUMNNAME_A_Accumulated_Depr_F, COLUMNNAME_A_Asset_Class_ID, COLUMNNAME_A_Asset_Class_Value, COLUMNNAME_A_Asset_Cost, COLUMNNAME_A_Asset_Group_ID, COLUMNNAME_A_Asset_Group_Value, COLUMNNAME_A_Asset_ID, COLUMNNAME_A_Asset_Type_ID, COLUMNNAME_A_Asset_Type_Value, COLUMNNAME_A_Current_Period, COLUMNNAME_A_Remaining_Period, COLUMNNAME_A_Salvage_Value, COLUMNNAME_AcctSchemaName, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AssetAmtEntered, COLUMNNAME_AssetDepreciationDate, COLUMNNAME_AssetPeriodDepreciationAmt, COLUMNNAME_AssetServiceDate, COLUMNNAME_AssetSourceAmt, COLUMNNAME_BPartner_Value, COLUMNNAME_C_AcctSchema_ID, COLUMNNAME_C_BPartnerSR_ID, COLUMNNAME_C_City_ID, COLUMNNAME_C_City_Value, COLUMNNAME_C_Currency_ID, COLUMNNAME_C_UOM_ID, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_DateAcct, COLUMNNAME_Description, COLUMNNAME_DocAction, COLUMNNAME_I_ErrorMsg, COLUMNNAME_I_FixedAsset_ID, COLUMNNAME_I_FixedAsset_UU, COLUMNNAME_I_IsImported, COLUMNNAME_InventoryNo, COLUMNNAME_IsActive, COLUMNNAME_ISO_Code, COLUMNNAME_LocatorValue, COLUMNNAME_M_Locator_ID, COLUMNNAME_M_Product_ID, COLUMNNAME_Name, COLUMNNAME_Processed, COLUMNNAME_Processing, COLUMNNAME_ProductValue, COLUMNNAME_Qty, COLUMNNAME_SeqNo, COLUMNNAME_UOMSymbol, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_UseLifeMonths, COLUMNNAME_UseLifeMonths_F, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description MIFixedAsset(Properties ctx, int I_FixedAsset_ID, String trxName)
Standard ConstructorMIFixedAsset(Properties ctx, ResultSet rs, String trxName)
Load Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getA_Depreciation_F_ID()
int
getA_Depreciation_ID()
Depreciation Methodint
getA_Last_Period()
MProduct
getCreateProduct()
Create / Load productMProduct
getProduct()
int
getStdPrecision()
CurrencyString
getSummary()
String representationboolean
isDepreciating()
boolean
isFullyDepreciated()
void
process()
void
setDefault_Asset_Group_ID(int A_Asset_Group_ID)
void
setDefault_Product_Category_ID(int M_Product_Category_ID)
void
setError(String msg)
Sets custom errorvoid
setProduct(MProduct product)
-
Methods inherited from class org.compiere.model.X_I_FixedAsset
get_AccessLevel, getA_Accumulated_Depr, getA_Accumulated_Depr_F, getA_Asset, getA_Asset_Class, getA_Asset_Class_ID, getA_Asset_Class_Value, getA_Asset_Cost, getA_Asset_Group, getA_Asset_Group_ID, getA_Asset_Group_Value, getA_Asset_ID, getA_Asset_Type, getA_Asset_Type_ID, getA_Asset_Type_Value, getA_Current_Period, getA_Remaining_Period, getA_Salvage_Value, getAcctSchemaName, getAssetAmtEntered, getAssetDepreciationDate, getAssetPeriodDepreciationAmt, getAssetServiceDate, getAssetSourceAmt, getBPartner_Value, getC_AcctSchema, getC_AcctSchema_ID, getC_BPartnerSR, getC_BPartnerSR_ID, getC_City, getC_City_ID, getC_City_Value, getC_Currency, getC_Currency_ID, getC_UOM, getC_UOM_ID, getDateAcct, getDescription, getDocAction, getI_ErrorMsg, getI_FixedAsset_ID, getI_FixedAsset_UU, getInventoryNo, getISO_Code, getLocatorValue, getM_Locator, getM_Locator_ID, getM_Product, getM_Product_ID, getName, getProductValue, getQty, getSeqNo, getUOMSymbol, getUseLifeMonths, getUseLifeMonths_F, initPO, isI_IsImported, isProcessed, isProcessing, setA_Accumulated_Depr, setA_Accumulated_Depr_F, setA_Asset_Class_ID, setA_Asset_Class_Value, setA_Asset_Cost, setA_Asset_Group_ID, setA_Asset_Group_Value, setA_Asset_ID, setA_Asset_Type_ID, setA_Asset_Type_Value, setA_Current_Period, setA_Remaining_Period, setA_Salvage_Value, setAcctSchemaName, setAssetAmtEntered, setAssetDepreciationDate, setAssetPeriodDepreciationAmt, setAssetServiceDate, setAssetSourceAmt, setBPartner_Value, setC_AcctSchema_ID, setC_BPartnerSR_ID, setC_City_ID, setC_City_Value, setC_Currency_ID, setC_UOM_ID, setDateAcct, setDescription, setDocAction, setI_ErrorMsg, setI_FixedAsset_ID, setI_FixedAsset_UU, setI_IsImported, setInventoryNo, setISO_Code, setLocatorValue, setM_Locator_ID, setM_Product_ID, setName, setProcessed, setProcessing, setProductValue, setQty, setSeqNo, setUOMSymbol, setUseLifeMonths, setUseLifeMonths_F, toString
-
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock, update_Tree, validForeignKeys
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface org.compiere.model.I_I_FixedAsset
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
-
Methods inherited from interface org.compiere.model.I_Persistent
save
-
-
-
-
Constructor Detail
-
MIFixedAsset
public MIFixedAsset(Properties ctx, int I_FixedAsset_ID, String trxName)
Standard Constructor
-
MIFixedAsset
public MIFixedAsset(Properties ctx, ResultSet rs, String trxName)
Load Constructor- Parameters:
ctx
- contextrs
- result set record
-
-
Method Detail
-
getCreateProduct
public MProduct getCreateProduct()
Create / Load product- Returns:
- product
-
process
public void process()
-
isFullyDepreciated
public boolean isFullyDepreciated()
- Returns:
- Este MF-ul depreciat integral
-
isDepreciating
public boolean isDepreciating()
- Returns:
- Asset is Depreciating
-
getA_Last_Period
public int getA_Last_Period()
- Returns:
-
setDefault_Product_Category_ID
public void setDefault_Product_Category_ID(int M_Product_Category_ID)
-
setDefault_Asset_Group_ID
public void setDefault_Asset_Group_ID(int A_Asset_Group_ID)
-
setProduct
public void setProduct(MProduct product)
-
getProduct
public MProduct getProduct()
-
getA_Depreciation_ID
public int getA_Depreciation_ID()
Depreciation Method
-
getA_Depreciation_F_ID
public int getA_Depreciation_F_ID()
-
getStdPrecision
public int getStdPrecision()
Currency
-
getSummary
public String getSummary()
String representation
-
setError
public void setError(String msg)
Sets custom error
-
-