public class Depreciation extends Mbo implements DepreciationRemote
MULTILANGCOPY, phantomList, phantomQueueFIELD_DELETEDEP, FIELD_REMOVEDEPALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description |
|---|
Depreciation(MboSet ms) |
| Modifier and Type | Method and Description |
|---|---|
void |
add()
This is called when a new Mbo is added to the Mboset collection.
|
void |
copyAssetsToSplitAllocTable(AssetSetRemote assetSetRemote)
Copies the selected Asset values to the ASSETALLOCDEP.
|
void |
copyChildrenAssetsToSplitAllocTable(MboSetRemote allocDepAssetSet)
Copies Current Asset's childrens values to the ASSETALLOCDEP.
|
DepHistoryRemote |
createDepreciationHistory(AssetRemote asset,
AssetRemote previousAsset,
java.lang.String historyType)
Create a historic for depreciation and each depreciation schedule definition
|
DepHistoryRemote |
createDepreciationHistory(AssetRemote asset,
java.lang.String historyType)
Create a historic for depreciation and each depreciation schedule definition
|
void |
deleteDepreciation() |
boolean |
doReplaceEntireDepSched()
If a
recalculation point is not set on the current schedule,
when generating a schedule,
this method is called to throw a Yes or No exception asking removal and
replacement of the entire current schedule schedule. |
void |
generateDepreciationSchedule(java.lang.String historyType)
Create a set of depreciation schedule periods for each depreciation schedule definition without save historic
|
void |
generateDepreciationScheduleAndHistory(AssetRemote asset,
java.lang.String historyType)
Create a set of depreciation schedule periods for each depreciation schedule definition and save the historic
|
void |
generateDepreciationSchedulePreview()
Create a set of depreciation schedule preview for the current depreciation schedule definition
|
void |
generateDepreciationSchedulePreviewByItem()
Performs the item validation for schedule definition and create a set of depreciation schedule preview
|
MboSetRemote |
getSplitAllocAssetList()
Returns a list of assets which reside in the sites that the user is
authorized and whose status is NOT READY, OPERATING.
|
boolean |
hasErro()
Check if there the depreciation has erro
* @return - true if there is and false if there is not
|
boolean |
isRecalcPoint()
Check if there is some period set as recalc point
|
void |
moveAssetDepreciationData(AssetRemote asset)
On Move/Swap Asset also move Depreciation Data.
|
void |
recalcAllocTargetAssets() |
void |
removeDepreciation(AssetRemote asset) |
void |
splitDepreciation(MboSetRemote allocDepAssetSet) |
void |
validateAndClearStartDate()
Performs the validation on the depreciation and if there is no issue clear the start date.
|
void |
validateAndClearStartDateByItem()
Performs the validation on the depreciation following the item rules and clear the start date.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, init, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, duplicate, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributespublic Depreciation(MboSet ms) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic boolean doReplaceEntireDepSched()
throws MXException,
java.rmi.RemoteException
recalculation point is not set on the current schedule,
when generating a schedule,
this method is called to throw a Yes or No exception asking removal and
replacement of the entire current schedule schedule.doReplaceEntireDepSched in interface DepreciationRemoteMXApplicationException - ("Asset","replaceDepSched") when a recalculation point greater than periodnum 1 does not exist in this DepSchedSet, the interactive dialog is being used and an affirmative response has not yet been given through that dialog.MXExceptionjava.rmi.RemoteExceptionpublic boolean isRecalcPoint()
throws MXException,
java.rmi.RemoteException
isRecalcPoint in interface DepreciationRemotejava.rmi.RemoteExceptionMXExceptionisRecalcPoint()public void validateAndClearStartDate()
throws MXException,
java.rmi.RemoteException
validateAndClearStartDate in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionvalidateAndClearStartDate()public void validateAndClearStartDateByItem()
throws MXException,
java.rmi.RemoteException
validateAndClearStartDateByItem in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionvalidateAndClearStartDateByItem()public void generateDepreciationSchedule(java.lang.String historyType)
throws MXException,
java.rmi.RemoteException
generateDepreciationSchedule in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.asset.Depreciation#generateDepreciationSchedule()public void generateDepreciationScheduleAndHistory(AssetRemote asset, java.lang.String historyType) throws MXException, java.rmi.RemoteException
generateDepreciationScheduleAndHistory in interface DepreciationRemoteasset - - The asset that will be depreciatedMXExceptionjava.rmi.RemoteExceptiongenerateDepreciationScheduleAndHistory(AssetRemote asset,String historyType)public void generateDepreciationSchedulePreview()
throws MXException,
java.rmi.RemoteException
generateDepreciationSchedulePreview in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptiongenerateDepreciationSchedulePreview()public void generateDepreciationSchedulePreviewByItem()
throws MXException,
java.rmi.RemoteException
generateDepreciationSchedulePreviewByItem in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptiongenerateDepreciationSchedulePreviewByItem()public void deleteDepreciation()
throws MXException,
java.rmi.RemoteException
deleteDepreciation in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionpublic void removeDepreciation(AssetRemote asset) throws MXException, java.rmi.RemoteException
removeDepreciation in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionpublic void moveAssetDepreciationData(AssetRemote asset) throws MXException, java.rmi.RemoteException
DepreciationRemotemoveAssetDepreciationData in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
Mboadd in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic void recalcAllocTargetAssets()
throws MXException,
java.rmi.RemoteException
recalcAllocTargetAssets in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getSplitAllocAssetList() throws MXException, java.rmi.RemoteException
getSplitAllocAssetList in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionpublic void copyAssetsToSplitAllocTable(AssetSetRemote assetSetRemote) throws MXException, java.rmi.RemoteException
copyAssetsToSplitAllocTable in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionpublic void copyChildrenAssetsToSplitAllocTable(MboSetRemote allocDepAssetSet) throws MXException, java.rmi.RemoteException
copyChildrenAssetsToSplitAllocTable in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionpublic void splitDepreciation(MboSetRemote allocDepAssetSet) throws MXException, java.rmi.RemoteException
splitDepreciation in interface DepreciationRemoteMXExceptionjava.rmi.RemoteExceptionpublic DepHistoryRemote createDepreciationHistory(AssetRemote asset, java.lang.String historyType) throws MXException, java.rmi.RemoteException
createDepreciationHistory in interface DepreciationRemoteasset - - The asset that will be depreciatedMXExceptionjava.rmi.RemoteExceptioncreateDepreciationHistory(AssetRemote asset,String historyType)public DepHistoryRemote createDepreciationHistory(AssetRemote asset, AssetRemote previousAsset, java.lang.String historyType) throws MXException, java.rmi.RemoteException
createDepreciationHistory in interface DepreciationRemoteasset - - The asset that will be depreciatedpreviousAsset - - The original asset that was depreciatedMXExceptionjava.rmi.RemoteExceptioncreateDepreciationHistory(AssetRemote asset, AssetRemote previousAsset,String historyType)public boolean hasErro()
throws MXException,
java.rmi.RemoteException
hasErro in interface DepreciationRemotejava.rmi.RemoteExceptionMXExceptionhasErro()