public class ContractLine extends Mbo implements ContractLineRemote
| Attribute Name | Description |
|---|---|
| CatalogCode | Vendor's catalog or product list number. |
| ChgPriceOnUse | Can price be changed on the line with contract reference. |
| ChgQtyOnUse | Can quantity be changed on line with contract reference. |
| Commodity | |
| ConditionCode | |
| ContractLineId | Unique identifier for every ContractLine in the database. Every ContractLine has a unique ContractLineID. |
| ContractLineNum | The line number of the Contract Line. This is unique to every line in a set of Contract Lines that belong to a Contract. |
| ContractNum | Contract Number. This is one of the key fields. Each ContractNum need not be unique. Every new revision of the same contract will carry the same contract number. |
| ContractType | Indicates whether the type of the contract is Labor or Lease or Maintenance or Purchase or Rental or Software License or Warranty. |
| Description | Description of the item or service of the Contract Line. Also accomodates a long description. |
| EnterBy, EnterDate | Name of the user who entered the Contract Line and the date the Contract Line was entered. |
| HasPaymentSched | Does the ContractLine have a Payment Schedule associated with it? |
| InspectionRequired | Indicates wheteher this item requires inspection upon receipt. |
ItemNum | Identifier for the item number on the Contract Line. |
ItemSetID | Identifier of the itemset identifier for this object.
|
| LeadTime | Delivery Time. |
LineCost | Cost of the line item calculated as qty * unitcost. For service lines, this field is directly entered by the user. |
| LDKey | Long Description Key. This is a link to text stored in the LongDescription table. |
| LineCost2 | LineCost in Base Currency2. |
| LineStatus | Status of the line. Can be approved, waiting for approval, draft, canceled, closed. |
LineType | The type of Contract Line. It could be ITEM, MATERIAL, SERVICE, TOOL, STDSERVICE or EXTERNAL type. |
Manufacturer | Code for the manufacturer who manufactures the item. |
| ModelNum | Manufacturer's model number for the item. |
OrderQty | The number of units of the item that have been ordered. |
OrderUnit | Standard unit by which this item is ordered. If you are requisitioning an item that has an orderunit, that unit(such as dozen or box) is copied from the corresponding inventory record. |
OrgId | Identifier of the organization for this Contract Line.
|
| PORequired | Will a PO be required for this contract? |
| Remark | Any additional description, remarks that need to be specified for this Contract Line. |
| RevisionNum | Revision number of the contract. |
| RevStatus | The revision status of the Contract Line. This field mainly applies to contract revisions. If a change is made in one of the lines of the revision, the revstatus is set to CHANGED. |
UnitCost | Cost of each unit on the Contract Line. |
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 |
|---|
ContractLine(MboSet ms)
Construct the ContractLine
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Defaults certain fields on the ContractLine Object.
|
void |
appValidate()
Several conditions are checked before the line can be saved.
|
void |
canCreateSchedule()
Check to make sure that a payment schedule can be created for this contract line.
|
void |
canDelete()
Cannot delete a ContractLine that has been canceled.
|
void |
changeLineStatus(java.lang.String lineStatus)
Change the linestatus of the Contract Line to the passed in line status.
|
MboRemote |
copy(MboSetRemote mboset)
Over-ride the copy method of the Mbo.
|
MboRemote |
copyPurchContractLine(MboRemote releasePOLineRemote,
MboRemote createRelInput)
Copies the details from the ContractLine to the POLine.
|
void |
createSchedule()
Create a new payment schedule header if none exists for this contract line.
|
void |
delete(long accessModifier)
Delete the contract line record.
|
java.lang.String |
getInternalContractType() |
java.lang.String |
getInternalLineStatus() |
java.lang.String |
getInternalLineType()
Returns the internal representation of the Line Type field.
|
java.lang.String |
getInternalRevStatus()
Get the internal representation of the CONTRACTLINE.REVSTATUS
|
MboRemote |
getInvVendorRemote()
Returns the invVendor record on the following conditions.
|
java.lang.String[] |
getValidateOrder()
Validates the Order for contract line attributes.
|
boolean |
getVendorItem()
Return true if the action is from Vendor Item page.
|
void |
init()
Called by the framework when the Mbo has been constructed and the
MboValues have been initialized.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
Called whenever a relationship is initialized or reset from this Mbo to another MboSet.
|
boolean |
isContractReferencedOnPOLine()
Checks to see if the contract was referenced on any poline.
|
boolean |
isServiceType() |
void |
modify()
Internal method that marks the record as modified.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Set value for CONTRACTNUM.
|
void |
save()
Set the attribute haspaymentsched on contract line based on whether it has
any payment schedules or not.
|
protected void |
setEditibilityFlags(boolean flag)
sets the editibility flags for fields in Contract.
|
void |
setVendorItem(boolean value)
Set fromVendorItem variable.
|
protected boolean |
skipCopyField(MboValueInfo mvi)
This method overrides the skipCopyField() in the Mbo.Since this method takes the MboValueInfo as its parameter
just check to see if this field needs to be copied or skipped.If this field does not need to be copied return true.
|
void |
undelete()
Undelete the contract line record.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, 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, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRecordType, getRelatedSets, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getTenantIdForNoMboRecordData, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, isApiBatchError, isAppLockEnabled, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isDuringInit, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDatabaseDefaultValues, setDatabaseDefaultValues, setDefaultValue, setDefaultValues, setDeleted, setDuringInit, 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, setRecordType, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setTenantIdForNoMboRecordData, 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, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedclone, equals, finalize, 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, 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, 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, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributespublic ContractLine(MboSet ms) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
Mboinit in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic MboRemote copyPurchContractLine(MboRemote releasePOLineRemote, MboRemote createRelInput) throws MXException, java.rmi.RemoteException
copyPurchContractLine in interface ContractLineRemotereleasePOLineRemote - createRelInput - MXExceptionjava.rmi.RemoteExceptionContractLine.copyPurchContractLine(psdi.mbo.MboRemote, psdi.mbo.MboRemote)protected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField in class Mbo- - The MboValueInfo object of the MboValue that needs to be copied.java.rmi.RemoteExceptionMXExceptionpublic java.lang.String getInternalLineStatus()
throws MXException,
java.rmi.RemoteException
getInternalLineStatus in interface ContractLineRemoteMXExceptionjava.rmi.RemoteExceptionContractLine.getInternalLineStatus()public java.lang.String getInternalContractType()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void modify()
throws MXException,
java.rmi.RemoteException
modify in class MboMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getInternalRevStatus()
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 createSchedule()
throws MXException,
java.rmi.RemoteException
createSchedule in interface ContractLineRemoteMXExceptionjava.rmi.RemoteExceptionContractLine.createSchedule()public void canCreateSchedule()
throws MXException,
java.rmi.RemoteException
canCreateSchedule in interface ContractLineRemoteMXExceptionjava.rmi.RemoteExceptionContractLine.canCreateSchedule()public void propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
throws MXException,
java.rmi.RemoteException
propagateKeyValue in interface MboRemotepropagateKeyValue in class MbokeyName - Should equal "CONTRACTNUM" or else nothing will be propagated.keyValue - The new value of CONTRACTNUM.MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getInternalLineType()
throws MXException,
java.rmi.RemoteException
getInternalLineType in interface ContractLineRemoteMXExceptionjava.rmi.RemoteExceptionContractLine.getInternalLineType()public void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
appValidate in class MboMXExceptionjava.rmi.RemoteExceptionpublic boolean isServiceType()
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 MboaccessModifier - MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getInvVendorRemote() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void changeLineStatus(java.lang.String lineStatus)
throws MXException,
java.rmi.RemoteException
changeLineStatus in interface ContractLineRemoteMXExceptionjava.rmi.RemoteExceptionContractLine.changeLineStatus(java.lang.String)public void save()
throws MXException,
java.rmi.RemoteException
save in class MboMXExceptionjava.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.RemoteExceptionprotected void setEditibilityFlags(boolean flag)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setVendorItem(boolean value)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean getVendorItem()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean isContractReferencedOnPOLine()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String[] getValidateOrder()
getValidateOrder in class Mbo