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, 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 |
---|
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.
|
void |
setVendorItem(boolean value)
Set fromVendorItem variable.
|
void |
undelete()
Undelete the contract line record.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, 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, 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, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, 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, 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, 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, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributes
public ContractLine(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
Mbo
init
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public MboRemote copyPurchContractLine(MboRemote releasePOLineRemote, MboRemote createRelInput) throws MXException, java.rmi.RemoteException
copyPurchContractLine
in interface ContractLineRemote
releasePOLineRemote
- createRelInput
- MXException
java.rmi.RemoteException
copyPurchContractLine(psdi.mbo.MboRemote, psdi.mbo.MboRemote)
public java.lang.String getInternalLineStatus() throws MXException, java.rmi.RemoteException
getInternalLineStatus
in interface ContractLineRemote
MXException
java.rmi.RemoteException
getInternalLineStatus()
public java.lang.String getInternalContractType() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void modify() throws MXException, java.rmi.RemoteException
modify
in class Mbo
MXException
java.rmi.RemoteException
public java.lang.String getInternalRevStatus() 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 createSchedule() throws MXException, java.rmi.RemoteException
createSchedule
in interface ContractLineRemote
MXException
java.rmi.RemoteException
createSchedule()
public void canCreateSchedule() throws MXException, java.rmi.RemoteException
canCreateSchedule
in interface ContractLineRemote
MXException
java.rmi.RemoteException
canCreateSchedule()
public void propagateKeyValue(java.lang.String keyName, java.lang.String keyValue) throws MXException, java.rmi.RemoteException
propagateKeyValue
in interface MboRemote
propagateKeyValue
in class Mbo
keyName
- Should equal "CONTRACTNUM" or else nothing will be propagated.keyValue
- The new value of CONTRACTNUM.MXException
java.rmi.RemoteException
public java.lang.String getInternalLineType() throws MXException, java.rmi.RemoteException
getInternalLineType
in interface ContractLineRemote
MXException
java.rmi.RemoteException
getInternalLineType()
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public boolean isServiceType() 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
accessModifier
- MXException
java.rmi.RemoteException
public MboRemote getInvVendorRemote() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void changeLineStatus(java.lang.String lineStatus) throws MXException, java.rmi.RemoteException
changeLineStatus
in interface ContractLineRemote
MXException
java.rmi.RemoteException
changeLineStatus(java.lang.String)
public void save() throws MXException, java.rmi.RemoteException
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 setVendorItem(boolean value) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean getVendorItem() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean isContractReferencedOnPOLine() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[] getValidateOrder()
getValidateOrder
in class Mbo