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, phantomQueue
ALLROWS, 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, 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, initFieldFlagsOnMbo, 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, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, 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, 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, unlock, unselect, validate, validateAttributes
public SchLeaseView(MboSet ms) throws java.rmi.RemoteException
ms
- java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public 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 MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public java.util.Date calculateEndDate(java.util.Date inDate) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void createSchLineFromAsset(MboSetRemote assetSet) throws MXException, java.rmi.RemoteException
createSchLineFromAsset
in interface SchLeaseViewRemote
MXException
java.rmi.RemoteException
psdi.app.contract.schedule
public void canCreateInvoicesForSchedule() throws MXException, java.rmi.RemoteException
canCreateInvoicesForSchedule
in interface SchLeaseViewRemote
MXException
java.rmi.RemoteException
psdi.app.contract.schedule
public void createInvoicesForSchedule(MboSetRemote scheduleLineSet) throws MXException, java.rmi.RemoteException
createInvoicesForSchedule
in interface SchLeaseViewRemote
MXException
java.rmi.RemoteException
psdi.app.contract.schedule
public double reCalcScheduleLineCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- MXException
java.rmi.RemoteException
Mbo.delete(long)
public void undelete() throws MXException, java.rmi.RemoteException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
public double reCalcInterimCharge() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote copy(MboSetRemote mboset) throws MXException, java.rmi.RemoteException
copy
in interface MboRemote
copy
in class Mbo
mboset
- The set into which the new mbo will be added.MXException
java.rmi.RemoteException
Mbo.copy(MboSetRemote, long)
public void checkRequiredFields() throws MXException, java.rmi.RemoteException
checkRequiredFields
in interface SchLeaseViewRemote
MXApplicationException("contract",
- "StartDateIsNull");MXApplicationException("contract",
- "GLDebitAcctIsNull");MXApplicationException("contract",
- "ScheduleIsNull");MXException
java.rmi.RemoteException
psdi.app.contract.schedule
public void canSelectAsset() throws MXException, java.rmi.RemoteException
canSelectAsset
in interface SchLeaseViewRemote
MXApplicationException("contract",
- "PaymentAlreadyGenerated");MXException
java.rmi.RemoteException
psdi.app.contract.schedule
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXApplicationException
- (contract, CannotDeleteIfInvoicesExist) Can only delete if invoices generated.MXApplicationException
- (contract, CannotDeleteSchContractPNDREV) Can not delete if contract pending revision.MXException
java.rmi.RemoteException
public void initRelationship(java.lang.String relationName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
initRelationship
in class Mbo
relationName
- the relationship namemboSet
- the mbosetMXException
java.rmi.RemoteException
public void canReviseSchedule() throws MXException, java.rmi.RemoteException
canReviseSchedule
in interface SchLeaseViewRemote
MXException
java.rmi.RemoteException
canReviseSchedule()
public MboRemote reviseSchedule() throws MXException, java.rmi.RemoteException
reviseSchedule
in interface SchLeaseViewRemote
MXException
java.rmi.RemoteException
reviseSchedule()
public MboSetRemote getInvoicesForSchedule() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException