public class Reorder extends Mbo implements ReorderRemote
This object doesn't have key attributes.
See Inventory Package description.
The attributes in this object are as follows:
Attribute Name | Description |
---|---|
CATALOGCODE | Vendor catalog Code for the Item if available. |
CATEGORY | Category of item: Stocked/Non-Stocked/Special Order. |
CONTRACTLINEID | Line ID of the contract applied to the order of this item. Along with CONTRACTREFNUM, it specifies the contract line from which the price of this item is obtained. |
CONTRACTREFNUM | Number of the Contract applied to the order of this item. Along with the CONTRACTREFNUM, it specifies the contract line from which the price of this item is obtained. |
CURBAL | Current balance at this storeroom if the order is for the storeroom. |
DELIVERYTIME | Delivery Time, used to calculate the required date of this item. |
DESCRIPTION | Description of the item being ordered. It is this item's description or MR's description if the order is for MR. |
ASSETLOCATION | The location of the asset that requires the item. |
ASSETNUM | The asset that requires the item. |
EXPLOTQTY | Total quantity of this item in expired lots. It is considered when calculating the quantity being reordered. |
GLACCOUNT | GL Account copied from inventory's glaccount. |
GLCREDITACCT | GL Account to be credit. |
GLDEBITACCT | The GL Account to be debited for this item. It is the control account of the inventory record. |
Extra Fields IN19 thru IN23 | Extra Fields copied from item |
ITEMNUM | Item number of the item being reordered. |
LINETYPE | The type of item or service being ordered. Possible values include ITEM, MATERIAL, SERVICE or EXTERNAL. |
LOCATION | The storeroom where the item is required. Empty if it is for direct order. |
LOTTYPE | Inventory lot type for this item (LOT or NOLOT). |
MANUFACTURER | Company that manufactured the item if available. |
MAXLEVEL | Maximum level - Not used. |
MINLEVEL | Minimum level.The minimum inventory level (reorder point). If user chooses to use reorder point, the item will be reordered only if the available quantity in the storeroom is dropped belong this amount. specified for the ITEMNUM-LOCATION. Filled in by Workorder Approval or Material Request Approval. |
MODELNUM | Vendor Model Number For The Item if available. |
MRLINENUM | Material request line number against which this item is requested. Only applicable for the reorder process for MR. It is null for storeroom reorder items. |
MRNUM | The Material Request Number against which the Direct Request has been made, if any. Filled in by Material Request Approval. It is null for storeroom reorder items. |
ORDERQTY | Order quantity , quantity to be re-ordered(Inventory Reorder Quantity, |
ORGID | Organization of the site where reorder is taking place. in ORDERUNITS. It is calculated by the reorder process. |
ORDERUNIT | Unit of order of the item to be ordered. |
PONUM | The number of the PO containing the order of this item generated by reorder process. |
POQTY | Total quantity of this item on existing purchase orders. It is considered when calculating the reorder quantity. |
PRNUM | Number of the PR containing the order of this item generated by the reorder process. |
PRQTY | Total quantity of this item on the existing purchase requests. It is considered when calculating the reorder quantity. |
REORDERQTY | The quantity of this item being reordered. It is calculated by the reorder process if the reorder is for a storeroom, otherwise, it is specified on the direct order. |
REQUESTBY | The person making the request in case of direct issue lines. It is the user name of the person. Applicable only to direct order items. It is the enterby field of MR or requestby field of wpitem. |
REQUIREDATE | Date on which item is required. |
RESERVEDQTY | Quantity of the item already being reserved. It is considered when calculating the reorder quantity. |
SCHEDSTART | Scheduled start date for the workorder when it is direct order item from a workorder. |
SITE | The site of the location, MR, or the direct order items the reorder is processing. |
TARGSTARTDATE | Target Start Date for the item when it is direct order item from a workorder. |
UNITCOST | Unit cost for the item being ordered. It is decided by the reorder process. |
USRNAME | Login user name of the person who performs the reorder. |
VENDOR | Vendor code from where the item is being ordered. It is decided by the reorder process according to a predefined logic. |
VENDORPACKCODE | The pack code of the product. It is the code of how the items will be packed. For example, BOX (12 to a box) or PALLET (30 to a pallet). Only applicable to direct order items. |
VENDORPACKQUANTITY | The quantity of the pack code. For example, pack code is box pack quantity is 12. Only applicable to direct order items. |
VENDORWAREHOUSE | Vendor warehouse that the product will come from. |
WONUM | The Work Order that requires the item. Applicable to direct order item. |
ReorderMutex
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 |
---|
Reorder(MboSet ms)
Construct the Reorder object
|
Modifier and Type | Method and Description |
---|---|
void |
calculateReorderQtywithInventory(MboRemote inventoryMbo)
Deprecated.
|
PORemote |
generatePOHeader(POSetRemote poSet)
Add a new PO to prSet, and update it with the information in this reorder item.
|
void |
generatePOLine(PRRemote po,
boolean groupByVender)
Excecute Reorder for this item.
|
PRRemote |
generatePRHeader(PRSetRemote prSet)
Add a new PR to prSet, and update it with the information in this reorder item.
|
void |
generatePRLine(PRRemote pr,
boolean groupByVender)
Excecute Reorder for this item.
|
java.lang.String |
getInternalLineType()
Returns the internal representation of the Line Type field.
|
void |
init()
init()
Initialization rountine.
|
void |
processVendorAndCost(boolean considerContract,
int allowanceDays)
Process vendor and cost information.
|
void |
processVendorAndCost(boolean considerContract,
int allowanceDays,
boolean recheckLeadTime)
Process the vendor and cost information for this item.
|
void |
setIgnoreReorderPoint(boolean ignoreReorderPointParam) |
java.lang.String |
toExtString()
Returns a string to describe the reordering item.
|
add, addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, canDelete, 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
add, 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 Reorder(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public java.lang.String toExtString() throws MXException, java.rmi.RemoteException
toExtString
in interface ReorderRemote
none
- none
MXException
java.rmi.RemoteException
toExtString()
public void processVendorAndCost(boolean considerContract, int allowanceDays) throws MXException, java.rmi.RemoteException
processVendorAndCost
in interface ReorderRemote
MXException
java.rmi.RemoteException
This variation doesn't recheck the leadtime on invvendor to decide if this item needs to be
ordered
public void processVendorAndCost(boolean considerContract, int allowanceDays, boolean recheckLeadTime) throws MXException, java.rmi.RemoteException
The rule for getting the vendor and price is as the following:
processVendorAndCost
in interface ReorderRemote
considerContract
- True if contracts need to be considered.allowanceDays
- extra leadtimerecheckLeadTime
- whether recheck if reorder need to process this item based on invvendor's leadtimenone
MXException
java.rmi.RemoteException
psdi.app.inventory.Reorder#processVendorAndCost(boolean)
public PRRemote generatePRHeader(PRSetRemote prSet) throws MXException, java.rmi.RemoteException
generatePRHeader
in interface ReorderRemote
prSet
- a PRSetRemotenone
MXException
java.rmi.RemoteException
generatePRHeader(PRSetRemote)
public PORemote generatePOHeader(POSetRemote poSet) throws MXException, java.rmi.RemoteException
generatePOHeader
in interface ReorderRemote
poSet
- a POSetRemotenone
MXException
java.rmi.RemoteException
generatePOHeader(POSetRemote)
public void generatePRLine(PRRemote pr, boolean groupByVender) throws MXException, java.rmi.RemoteException
generatePRLine
in interface ReorderRemote
groupByVender
- true if reorder should be grouped by vendornone
MXException
java.rmi.RemoteException
generatePRLine(PRRemote, boolean)
public java.lang.String getInternalLineType() throws MXException, java.rmi.RemoteException
getInternalLineType
in interface ReorderRemote
MXException
java.rmi.RemoteException
getInternalLineType()
public void generatePOLine(PRRemote po, boolean groupByVender) throws MXException, java.rmi.RemoteException
generatePOLine
in interface ReorderRemote
groupByVender
- true if reorder should be grouped by vendornone
MXException
java.rmi.RemoteException
generatePOLine(PRRemote, boolean)
public void calculateReorderQtywithInventory(MboRemote inventoryMbo) throws MXException, java.rmi.RemoteException
inventoryMbo
- MXException
java.rmi.RemoteException
public void setIgnoreReorderPoint(boolean ignoreReorderPointParam) throws MXException, java.rmi.RemoteException
setIgnoreReorderPoint
in interface ReorderRemote
MXException
java.rmi.RemoteException
setIgnoreReorderPoint(boolean)