public class InvTrans extends Mbo implements InvTransRemote
See Inventory Package description.
The key attribute(s) in this object are as follows: Invtransid
The persistent attributes in this object are as follows:
Attribute Name | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Binnum | bin within the storeroom that holds the items subject to the adjustment transaction. The default is the binnum from the Inventory object for this itemnum - storeroom combination. | ||||||||||||||||||||||||||||||||||||||||||||
Conversion | conversion factor between the Issue and Order Units of Measure(UOM) | ||||||||||||||||||||||||||||||||||||||||||||
Curbal | post-transaction current balance at this storeroom | ||||||||||||||||||||||||||||||||||||||||||||
Enterby | name of user entering the transaction | ||||||||||||||||||||||||||||||||||||||||||||
Exhangerate2 | exchange rate for a second base currency | ||||||||||||||||||||||||||||||||||||||||||||
Externalrefid | used by MAXIMO Integration Gateway (MIG) for interface to external financial system | ||||||||||||||||||||||||||||||||||||||||||||
Financialperiod | financial period in which the transaction takes place | ||||||||||||||||||||||||||||||||||||||||||||
GLCreditAcct | GL account credited. This depends on the Transtype. | ||||||||||||||||||||||||||||||||||||||||||||
GLDebitAcct | GL account debited. This depends on the Transtype. | ||||||||||||||||||||||||||||||||||||||||||||
Invtransid | primary key for table | ||||||||||||||||||||||||||||||||||||||||||||
Itemnum | inventory item number | ||||||||||||||||||||||||||||||||||||||||||||
ItemSetID | Identifier of the itemset identifier for this object.
| ||||||||||||||||||||||||||||||||||||||||||||
Linecost | cost of transaction | ||||||||||||||||||||||||||||||||||||||||||||
Linecost2 | line cost based on Exchangerate2, that is, Linecost2 = Linecost * Exchangerate2 | ||||||||||||||||||||||||||||||||||||||||||||
Lotnum | lot that holds the items subject to the adjustment transaction. Valid lots belong to those objects from the InvBalances table that have the current Itemnum - Location - Binnum combination. | ||||||||||||||||||||||||||||||||||||||||||||
Matrectransid | foreign key to matrectrans record from which this Invtrans object was generated | ||||||||||||||||||||||||||||||||||||||||||||
Matusetransid | used when breaking an inventory kit into its components to record a variance between the Kit's default issue cost and the sum of the component costs at the time the kit is disassembled. | ||||||||||||||||||||||||||||||||||||||||||||
Memo | free-form additional information user may supply regarding transaction | ||||||||||||||||||||||||||||||||||||||||||||
Newcost | post-cost adjustment cost. Newcost applies only to cost adjustment transactions. | ||||||||||||||||||||||||||||||||||||||||||||
Oldcost | pre-cost adjustment cost. Oldcost applies only to cost adjustment transactions. | ||||||||||||||||||||||||||||||||||||||||||||
OrgId | Identifier of the organization for this InvTrans.
Foreign key to Organizations .
| ||||||||||||||||||||||||||||||||||||||||||||
Ownersysid | used by MAXIMO Integration Gateway (MIG) for interface to external financial system | ||||||||||||||||||||||||||||||||||||||||||||
Physcnt | post-transaction physical count at this storeroom | ||||||||||||||||||||||||||||||||||||||||||||
Quantity | number of items added or subtracted in the transaction. Quantity will always be zero for cost adjustment transactions. This number is positive when the adjustment adds items and negative when it subtracts items. | ||||||||||||||||||||||||||||||||||||||||||||
Sendersysid | used by MAXIMO Integration Gateway (MIG) for interface to external financial system | ||||||||||||||||||||||||||||||||||||||||||||
SiteId | Identifier of the site for this InvTrans.
Foreign key to Site .
| ||||||||||||||||||||||||||||||||||||||||||||
Sourcesysid | used by MAXIMO Integration Gateway (MIG) for interface to external financial system | ||||||||||||||||||||||||||||||||||||||||||||
Storeloc | storeroom location | ||||||||||||||||||||||||||||||||||||||||||||
Transdate | inventory transaction date and time | ||||||||||||||||||||||||||||||||||||||||||||
Transtype | one of eight different Inventory transaction types from the ITTRANS value list. All inventory transactions are adjustments with the exception of INSERTITEM. Valid translated values are:
|
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 |
---|
InvTrans(MboSet ms)
Construct the InvTrans object
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Sets defaults for a new InvTrans Record.
|
void |
appValidate()
Pre-save validation method.
|
void |
canDelete()
Checks to see if this object can be deleted
throws MXException if it cannot be deleted
|
void |
createInvoiceOnConsumption()
save()
This method will call the invoice service method to generate the invoice if the invoice generation type is
set to Consumption in the inventory level for consinment items and will be called from save().
|
void |
init()
Initialize the InvTrans object
|
void |
save()
save()
save() calls method to generate the invoice for comsumption of consignment items.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, 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, initRelationship, 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, 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, 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, undelete, unlock, unselect, validate, validateAttributes
public InvTrans(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
none
- none
MXException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
none
- MXApplicationException
- GROUP | KEY | REASON | |
---|---|---|---|
inventory | invTransNoAdd | if the owner is not "INVBALANCES", "INVENTORY", "MATRECTRANS", or "ITEM" |
MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
none
- MXApplicationException
- GROUP | KEY | REASON | |
---|---|---|---|
inventory | invtransCannotDelete | if it cannot be deleted |
MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXApplicationException
- (financial, GLRequiredForTrans) The debit and credit GL accounts
require a value.MXException
java.rmi.RemoteException
public void save() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void createInvoiceOnConsumption() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException