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, 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 |
---|
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.
|
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 |
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, checkSiteOrgAccessForSave, clear, 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, modify, 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, 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, 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, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributes
public InvReserve(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
java.rmi.RemoteException
MXException
public void add() throws MXException, java.rmi.RemoteException
Attribute Name | Attribute Value |
---|---|
actualqty | 0(zero) |
reservedqty | 0(zero) |
initflag | false |
directreq | false |
add
in interface MboRemote
add
in class Mbo
none
- none
MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
None
- MXException
java.rmi.RemoteException
public void save() throws MXException, java.rmi.RemoteException
Mbo
MXException
java.rmi.RemoteException
public void incrActualQty(double incrValue) throws java.rmi.RemoteException, MXException
incrActualQty
in interface InvReserveRemote
java.rmi.RemoteException
MXException
incrActualQty(double)
public MboRemote copy() throws MXException, java.rmi.RemoteException
Mbo
copy
in interface MboRemote
copy
in class Mbo
MXException
java.rmi.RemoteException
Mbo.copy(MboSetRemote)
public MboRemote copy(MboSetRemote mboset) throws MXException, java.rmi.RemoteException
Mbo
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 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 InvReserveRemote
bin
- the bin of the storeroom to issue fromlot
- the lot if this is a lotted itemasset
- the piece of asset for issuejava.rmi.RemoteException
MXException
psdi.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 Mbo
MXException
java.rmi.RemoteException
public MboSetRemote smartFindByObjectName(java.lang.String sourceObj, java.lang.String targetAttrName, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFindByObjectName
in interface MboRemote
smartFindByObjectName
in class Mbo
MXException
java.rmi.RemoteException
psdi.mbo.Mbo#smartFindByObjectName()
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 deleteInvUseLines() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void undelete() throws MXException, java.rmi.RemoteException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
public boolean isHardReservation() throws MXException, java.rmi.RemoteException
isHardReservation
in interface InvReserveRemote
MXException
java.rmi.RemoteException
isHardReservation()
public boolean isBackOrdered() throws MXException, java.rmi.RemoteException
isBackOrdered
in interface InvReserveRemote
MXException
java.rmi.RemoteException
isBackOrdered()
public void setInvResType(java.lang.String displayResType) throws MXException, java.rmi.RemoteException
setInvResType
in interface InvReserveRemote
displayResType
- 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)MXException
java.rmi.RemoteException
public 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.MXException
java.rmi.RemoteException
public void setInvResType(java.lang.String displayResType, boolean disallowNegAvailBal) throws MXException, java.rmi.RemoteException
setInvResType
in interface InvReserveRemote
MXException
java.rmi.RemoteException
public void setInvResType(java.lang.String displayResType, int resbuffer, boolean disallowNegAvailBal) throws MXException, java.rmi.RemoteException
setInvResType
in interface InvReserveRemote
setAPSoft
- Will set the reservation to APSOFT if applicpable. Most of the time this will be true.MXException
java.rmi.RemoteException
public 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.MXException
public void setMRUpdated() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException