public class CompMaster extends Mbo implements CompMasterRemote
See Company Master Package description.
The key attributes for this object are Company and CompanySetId.
The attributes in this object are as follows:
Attribute Name | Attribute Description |
---|---|
Address1 | Street address of the company. |
Address2 | City where the company is located. |
Address3 | State or province where the company is located. |
Address4 | Company's zip or postal code. |
APControlAcc | Accounts Payable Control Account. Used when an invoice is paid. |
APSuspenseAcc | Accounts Payable Suspense Account. Used when an invoice is approved. |
AutoApproveInv | Yes/No field indicates whether or not invoices should automatically be approved for the vendor upon receipt of the invoice. |
AutoRecieveOnASN | Yes/No field indicates whether or not the vendor should automatically process the receipts for an automated shipping notification. |
AutoSendPOCancel | Yes/No field indicates whether or not the vendor is sent a transaction when a purchase order is cancelled. |
BankAccount | Company's bank account for direct payments. |
BankNum | Company's bank and branch identification reference number. Used when transferring funds electronically. |
CatalogName | Name of the catalog that will display when punching out. |
ChangeBy, ChangeDate | Name of the user who last updated this object and the date updated. |
Company | Identifier for the company. |
Contact | Name of the primary person to contact at the company. |
CurrencyCode | Currency used by the company. |
CustomerNum | Number used by an outside company to identify your own company. |
Disabled | Yes/No field indicates whether or not the company is disabled. |
DUNSNum | Data Universal Numbering System Number. Used to uniquely identify a company and its location. |
EcomInterface | E-Commerce supplier's catalog location. |
EcommerceEnabled | Yes/No field indicates whether or not the company has the capability of electronic commerce with MAXIMO. |
ExternalRefId | External Reference Identifier. |
Fax | Fax number of the company or contact. |
FOB | Free On Board. The point where responsibility and liability are transferred. |
FreightTerms | Description of what is being shipped. Riders to the shipping agreement should be included here. |
HomePage | URL for the company's World Wide Web page. |
Inclusive1 - Inclusive5 | Yes/No fields indicate whether or not tax1code - tax5code are included in the invoicing cost. |
Location | Location of the company. |
MNetCompanyId | MNet assigned company identification number. |
Name | Name and/or description of the company. Long description enabled. |
OwnerSysId | Owner System Identifier. |
PaymentTerms | Terms of payment for this vendor. |
PayOnReceipt | Yes/No field indicates whether or not a payment on receipt agrement exists with this company. |
PayVendor | Name of the person to whom payments should be sent. |
Phone | Telephone number of the company or contact. |
PunchOutEnabled | Yes/No field indicates whether this vendor's catalog can be accessed through punchout. |
RBNIAcc | Account for receipts that have not been approved. |
Registeration1 - Registeration5 | Tax registration numbers for tax types 1 - 5 used by the company. |
RemitAddress1 | Street address of the remit to company. |
RemitAddress2 | City of the remit to company. |
RemitAddress3 | State or province of the remit to company. |
RemitAddress4 | Zip or postal code of the remit to company. |
RemitContact | Name of the person at the remit to company to contact for invoicing. |
ShipVia | How the goods should be shipped. |
SourceSysId | Source System Identifier. |
Tax1Code - Tax5Code | Country or state tax codes of tax types 1 - 5 for this company. |
TaxExemptCode | Indicates whether the company is exempt from paying taxes. |
TaxExemptNum | National tax exemption number used for tax reporting purposes. |
VendorSendsASN | Yes/No field indicates whether or not the vendor should send automated shipping notification transactions. |
VendorSendsInv | Yes/No field indicates whether or not the vendor should send invoice transactions. |
VendorSendsStatus | Yes/No field indicates whether or not the vendor should send status transactions. |
Type | The company's type. |
Co11 - Co18 | Extra fields. |
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 |
---|
CompMaster(MboSet ms)
Construct the Company Master object.
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Set default values for some of the fields of the new company master.
|
void |
appValidate()
If the punchoutenabled flag is set to 'Y'
the catalogname field is required.
|
void |
canDelete()
A company master record may not be deleted
if any organization was a corresponding company record in use.
|
MboSetRemote |
createCompaniesForOrgs(MboSetRemote organizationSetRemote)
Creates a company from this company master for each organization selected.
|
void |
delete(long accessModifier)
Deletes the Company Master and all related contact master.
|
java.util.Vector |
getAttributesToCopy(boolean copyModifiedOnly)
Utility method returns a vector containing the names of all attributes
that must be updated on a matching company Mbo.
|
void |
init()
Initialization rountine.
|
void |
modify()
Modify() is called whenever a change is made to the attributes of company master.
|
void |
setContactInfo(MboRemote cont)
Set value of primaryContactOfCompany variable.
|
void |
setRemitContactInfo(MboRemote remitCont)
Set value of remitContactOfCompany variable.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, 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, initRelationship, 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, 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, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, 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, undelete, unlock, unselect, validate, validateAttributes
public CompMaster(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 |
---|---|
autoapproveinv | No |
autoreceiveonasn | No |
autosendpocancel | No |
changeby | Current username |
changedate | Current date |
companysetid | Company set identifier for the current organization. |
currencycode | BaseCurrency1 if there is a base currency, else do not default. |
disabled | No |
ecommerceenabled | No |
payonreceipt | No |
punchoutenabled | No |
vendorsendsasn | No |
vendorsendsinv | No |
vendorsendsstatus | No |
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void modify() throws MXException, java.rmi.RemoteException
modify
in class Mbo
MXException
java.rmi.RemoteException
public java.util.Vector getAttributesToCopy(boolean copyModifiedOnly) throws MXException, java.rmi.RemoteException
getAttributesToCopy
in interface CompMasterRemote
copyModifiedOnly
- if true, copies only modified attributesMXException
java.rmi.RemoteException
getAttributesToCopy(boolean copyModifiedOnly)
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXApplicationException
- GROUP | KEY | REASON |
---|---|---|
compmaster | cannotDeleteCompMaster | Cannot delete a company master that has been added to an organization. |
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.MXException
java.rmi.RemoteException
Mbo.delete(long)
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXApplicationException
- (compmaster, catalogNameRequired) Catalog name is required.MXException
java.rmi.RemoteException
public MboSetRemote createCompaniesForOrgs(MboSetRemote organizationSetRemote) throws MXException, java.rmi.RemoteException
createCompaniesForOrgs
in interface CompMasterRemote
organizationSetRemote
- The set of organizations for which this company will
be created.MXException
java.rmi.RemoteException
createCompaniesForOrgs(MboSetRemote organizationSetRemote)
public void setRemitContactInfo(MboRemote remitCont) throws MXException, java.rmi.RemoteException
setRemitContactInfo
in interface CompMasterRemote
MXException
java.rmi.RemoteException
setRemitContactInfo(MboRemote remitContact)
public void setContactInfo(MboRemote cont) throws MXException, java.rmi.RemoteException
setContactInfo
in interface CompMasterRemote
MXException
java.rmi.RemoteException
setContactInfo(MboRemote contact)