public class SchLeaseView extends Mbo implements SchLeaseViewRemote
See Contract Package description.
The key attribute for this object is ScheduleID.
The attributes in this object are as follows:
| Attribute Name | Attribute Description |
|---|
MULTILANGCOPY, phantomList, phantomQueueALLROWS, 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 |
|---|
SchLeaseView(MboSet ms)
Construct the SchLeaseView object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
This is called when a new schedule is added to the Schedule MboSet collection.
|
java.util.Date |
calculateEndDate(java.util.Date inDate)
Calculate the end date by adding the term to the current date.
|
void |
canCreateInvoicesForSchedule()
Cannot create invoices if there are no schedule lines for this payment schedule.
|
void |
canDelete()
This method is called by the Mbo's delete method.
|
void |
canReviseSchedule()
Check if the schedule can be revised.
|
void |
canSelectAsset()
Throws an exception if invoices have already been generated for this schedule.
|
void |
checkRequiredFields()
Throws an exception if the start date or the gl debit account or the schedule on the
payment schedule is null.
|
MboRemote |
copy(MboSetRemote mboset)
Over-ride the copy method of the Mbo.
|
void |
createInvoicesForSchedule(MboSetRemote scheduleLineSet)
Create invoices for payment schedules belonging to a lease contract.
|
void |
createSchLineFromAsset(MboSetRemote assetSet)
Create schedule lines for the selected assets.
|
void |
delete(long accessModifier)
This method deletes all the schedule lines related to this schedule.
|
MboSetRemote |
getInvoicesForSchedule()
Get the invoice set for this schedule.
|
void |
init()
Initialize rountine.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
Called whenever a relationship is initialized or reset from this Mbo to another MboSet.
|
double |
reCalcInterimCharge()
This method recalculates the schedule's interim charge if it is changed on any of its
schedule lines.
|
double |
reCalcScheduleLineCost()
This method recalculates the schedule's line cost if the line cost on any of its
schedule lines changes.
|
MboRemote |
reviseSchedule()
Create the revision of this schedule.
|
void |
undelete()
This method undeletes schedule that has been marked for deletion.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copyFake, copyValue, copyValue, createComm, 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, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getRowRestrictionFlag, getRowStamp, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeRelatedSet, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, 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, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copyFake, copyValue, copyValue, createComm, 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, 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, unlock, unselect, validate, validateAttributespublic SchLeaseView(MboSet ms) throws java.rmi.RemoteException
ms - java.rmi.RemoteExceptionpublic void init()
throws MXException
init in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
| Attribute Name | Attribute Value |
|---|---|
| contractid | Owner contract's ID |
| enddate | Current date |
| inclusive1..inclusive2..inclusive3... | No |
| interimcharge | 0.0 |
| leaseratefactor | 0.0 |
| periodicpayment | 0.0 |
| scheduleid | Unique ID |
| schedulenum | Add one to the existing maximum value |
| schedulerev | 0 |
| scheduletype | |
| singleline | false |
| startdate | Current date |
| targinvstatus | ENTERED |
| tax1..tax2..tax3... | 0.0 |
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic java.util.Date calculateEndDate(java.util.Date inDate)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void createSchLineFromAsset(MboSetRemote assetSet) throws MXException, java.rmi.RemoteException
createSchLineFromAsset in interface SchLeaseViewRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.contract.schedulepublic void canCreateInvoicesForSchedule()
throws MXException,
java.rmi.RemoteException
canCreateInvoicesForSchedule in interface SchLeaseViewRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.contract.schedulepublic void createInvoicesForSchedule(MboSetRemote scheduleLineSet) throws MXException, java.rmi.RemoteException
createInvoicesForSchedule in interface SchLeaseViewRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.contract.schedulepublic double reCalcScheduleLineCost()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
delete in interface MboRemotedelete in class MboaccessModifier - MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public void undelete()
throws MXException,
java.rmi.RemoteException
undelete in interface MboRemoteundelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic double reCalcInterimCharge()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote copy(MboSetRemote mboset) throws MXException, java.rmi.RemoteException
copy in interface MboRemotecopy in class Mbomboset - The set into which the new mbo will be added.MXExceptionjava.rmi.RemoteExceptionMbo.copy(MboSetRemote, long)public void checkRequiredFields()
throws MXException,
java.rmi.RemoteException
checkRequiredFields in interface SchLeaseViewRemoteMXApplicationException("contract", - "StartDateIsNull");MXApplicationException("contract", - "GLDebitAcctIsNull");MXApplicationException("contract", - "ScheduleIsNull");MXExceptionjava.rmi.RemoteExceptionpsdi.app.contract.schedulepublic void canSelectAsset()
throws MXException,
java.rmi.RemoteException
canSelectAsset in interface SchLeaseViewRemoteMXApplicationException("contract", - "PaymentAlreadyGenerated");MXExceptionjava.rmi.RemoteExceptionpsdi.app.contract.schedulepublic void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXApplicationException - (contract, CannotDeleteIfInvoicesExist) Can only delete if invoices generated.MXApplicationException - (contract, CannotDeleteSchContractPNDREV) Can not delete if contract pending revision.MXExceptionjava.rmi.RemoteExceptionpublic void initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
throws MXException,
java.rmi.RemoteException
initRelationship in class MborelationName - the relationship namemboSet - the mbosetMXExceptionjava.rmi.RemoteExceptionpublic void canReviseSchedule()
throws MXException,
java.rmi.RemoteException
canReviseSchedule in interface SchLeaseViewRemoteMXExceptionjava.rmi.RemoteExceptioncanReviseSchedule()public MboRemote reviseSchedule() throws MXException, java.rmi.RemoteException
reviseSchedule in interface SchLeaseViewRemoteMXExceptionjava.rmi.RemoteExceptionreviseSchedule()public MboSetRemote getInvoicesForSchedule() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException