public class InvReserve extends Mbo implements InvReserveRemote
See Inventory Package description.
This is a site level object.
The key attributes in this object are as follows: SiteId, Requestnum
The attributes in this object are as follows:
| Attribute Name | Description |
|---|---|
| Actualqty | Quantity of previously reserved item that has been issued |
| Dellocation | Delivery location for this reserved item |
| Description | Description of this reservation. Initially copied from Item.Description but can be modified and serves as additional remark to the reservation. |
| Directreq | If false, reserved item must be issued from inventory. If true, reserved item will be purchased and received directly to the work order, bypassing inventory. |
| Assetnum | Asset for which this item is being reserved
|
| Glaccount | GL account to be debited on issue |
| Initflag | Defaults to false, set to true by work order object when work order is initiated. |
| Issueto | Laborcode or craft to whom the reserved item will be issued |
| Itemnum | Inventory item being reserved
|
ItemSetID | Identifier of the itemset identifier for this object.
|
| Ldkey | Long Description Key. This is a link to text stored in the LongDescription table. |
| Location | Storeroom location of item being reserved
|
| Mrlinenum | Material request line number from which this Invreserve object originated |
| Mrnum | Material request number from which this Invreserve object originated |
| OrgId | Identifier of the organization for this inventory reservation
|
| Polineid | Internal purchase order unique line identifier |
| Polinenum | Purchase order line number from which this Invreserve object originated |
| Ponum | Number of approved, internal purchase order from which this Invreserve object originated. |
| Requestedby | Name of user who reserved the item |
| Requesteddate | Date and time of the item reservation |
| Requestnum | Unique identifier automatically generated for each reservation |
| Requireddate | Date and time the reserved item is needed on the work order |
| Reservedqty | Quantity of item that was reserved |
| SiteId | Identifier of the site for this inventory reservation
|
| WoNum | Work order for which this item is being reserved
|
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 |
|---|
InvReserve(MboSet ms)
Construct the item
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Adds a new reservation.
|
void |
appValidate()
Validations done before save().
|
void |
canDelete()
if work order of this reservation is WMATL status, should not allow user to delete the invserve.
|
boolean |
checkWMATStatus(java.lang.String itemnum,
java.lang.String location,
java.lang.String itemsetid,
java.lang.String siteid)
Check to see if record exists in WOMATSTATUSSYNC table.
|
MboRemote |
copy()
Adds a new mbo to this set and copies the values from the
current record into the new one.
|
MboRemote |
copy(MboSetRemote mboset)
Adds a new mbo to the set passed in and copies the information for each
of the fields into the new mbo from this.
|
void |
delete(long accessModifier)
This method calls deleteInvUseLines() to delete corresponding InvUseLines.
|
void |
deleteInvUseLines()
This method deletes the InvUseLine records for the give requestnum if
the invuse(header) record is in Entered Status.
|
boolean |
getInvReserveValQtyFlag() |
void |
incrActualQty(double incrValue) |
void |
init()
Initialize the object.
|
boolean |
isBackOrdered()
This method checks the reservation type to identify if its a backordered reservation.
|
boolean |
isHardReservation()
This method checks the reservation type to identify if its a hard reservation.
|
MboRemote |
issue(MboSetRemote newIssueSet,
java.lang.String bin,
java.lang.String lot,
java.lang.String rotasset,
double qty)
Return a new MatUseTrans record (ISSUE) for this reservation
|
void |
save()
Save the object and other linked objects.
|
void |
setInvReserveValQtyFlag()
This method sets the flag if the reserved qty needs to be validated.
|
void |
setInvResType(java.lang.String displayResType)
Use this method when you only know the displayResType.
|
void |
setInvResType(java.lang.String displayResType,
boolean disallowNegAvailBal)
Use this method when you want to set the restype and you do not know the resbuffer but do know all the other values.
|
void |
setInvResType(java.lang.String displayResType,
int resbuffer)
See #link setInvResType(String displayResType, int resbuffer, boolean disallowNegAvailBal, boolean setAPSoft)
|
void |
setInvResType(java.lang.String displayResType,
int resbuffer,
boolean disallowNegAvailBal)
Method to set the reservation restype field base on the following conditions.
|
void |
setMRUpdated()
This method sets MRUpdate flag to true.
|
MboSetRemote |
smartFindByObjectName(java.lang.String sourceObj,
java.lang.String targetAttrName,
java.lang.String value,
boolean exact)
Find a set of records of the object of the specified the application
by the specified attribute and values of the current record.
|
void |
undelete()
This method unmarks the Mbo for deletion.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, 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, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, 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, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, 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, skipCopyField, smartFill, smartFind, smartFind, smartFind, 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, 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, smartFind, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributespublic InvReserve(MboSet ms) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
init in class Mbojava.rmi.RemoteExceptionMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
| Attribute Name | Attribute Value |
|---|---|
| actualqty | 0(zero) |
| reservedqty | 0(zero) |
| initflag | false |
| directreq | false |
add in interface MboRemoteadd in class Mbonone - noneMXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
appValidate in class MboNone - MXExceptionjava.rmi.RemoteExceptionpublic void save()
throws MXException,
java.rmi.RemoteException
Mbosave in class MboMXExceptionjava.rmi.RemoteExceptionpublic void incrActualQty(double incrValue)
throws java.rmi.RemoteException,
MXException
incrActualQty in interface InvReserveRemotejava.rmi.RemoteExceptionMXExceptionInvReserve.incrActualQty(double)public MboRemote copy() throws MXException, java.rmi.RemoteException
Mbocopy in interface MboRemotecopy in class MboMXExceptionjava.rmi.RemoteExceptionMbo.copy(MboSetRemote)public MboRemote copy(MboSetRemote mboset) throws MXException, java.rmi.RemoteException
Mbocopy in interface MboRemotecopy in class Mbomboset - The set into which the new mbo will be added.MXExceptionjava.rmi.RemoteExceptionMbo.copy(MboSetRemote, long)public MboRemote issue(MboSetRemote newIssueSet, java.lang.String bin, java.lang.String lot, java.lang.String rotasset, double qty) throws java.rmi.RemoteException, MXException
issue in interface InvReserveRemotebin - the bin of the storeroom to issue fromlot - the lot if this is a lotted itemasset - the piece of asset for issuejava.rmi.RemoteExceptionMXExceptionpsdi.app.inventory.InvReserve#issue(psdi.app.inventory.MboSetRemote, java.lang.String, java.lang.String, java.lang.String, double)public void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote smartFindByObjectName(java.lang.String sourceObj, java.lang.String targetAttrName, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFindByObjectName in interface MboRemotesmartFindByObjectName in class MboMXExceptionjava.rmi.RemoteExceptionpsdi.mbo.Mbo#smartFindByObjectName()public void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
delete in interface MboRemotedelete in class MboaccessModifier - 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.MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public void deleteInvUseLines()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void undelete()
throws MXException,
java.rmi.RemoteException
undelete in interface MboRemoteundelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic boolean isHardReservation()
throws MXException,
java.rmi.RemoteException
isHardReservation in interface InvReserveRemoteMXExceptionjava.rmi.RemoteExceptionInvReserve.isHardReservation()public boolean isBackOrdered()
throws MXException,
java.rmi.RemoteException
isBackOrdered in interface InvReserveRemoteMXExceptionjava.rmi.RemoteExceptionInvReserve.isBackOrdered()public void setInvResType(java.lang.String displayResType)
throws MXException,
java.rmi.RemoteException
setInvResType in interface InvReserveRemotedisplayResType - The reservation type for the workorder, PO, MR, or reservation as an internal value.
see #link setInvResType(String displayResType, int resbuffer, boolean disallowNegAvailBal, boolean setAPSoft)MXExceptionjava.rmi.RemoteExceptionpublic void setInvResType(java.lang.String displayResType,
int resbuffer)
throws MXException,
java.rmi.RemoteException
displayResType - The reservation type fo the workorder, PO, MR, or reservation as an internal value.resbuffer - The organization buffer timesetAPSoft - True if the reservation should be set to APSoft. Most of the time this should be true.MXExceptionjava.rmi.RemoteExceptionpublic void setInvResType(java.lang.String displayResType,
boolean disallowNegAvailBal)
throws MXException,
java.rmi.RemoteException
setInvResType in interface InvReserveRemoteMXExceptionjava.rmi.RemoteExceptionpublic void setInvResType(java.lang.String displayResType,
int resbuffer,
boolean disallowNegAvailBal)
throws MXException,
java.rmi.RemoteException
setInvResType in interface InvReserveRemotesetAPSoft - Will set the reservation to APSOFT if applicpable. Most of the time this will be true.MXExceptionjava.rmi.RemoteExceptionpublic boolean checkWMATStatus(java.lang.String itemnum,
java.lang.String location,
java.lang.String itemsetid,
java.lang.String siteid)
throws MXException
itemnum - The inventory record number.location - The location of the inventory record.itemsetid - The Set of the inventory item.siteid - The site where the inventory record exists.MXExceptionpublic void setMRUpdated()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setInvReserveValQtyFlag()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean getInvReserveValQtyFlag()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException