public class PR extends PurchasingMbo implements PRRemote
See Purchase Requisition Package description.
This is a site level object.
The key attributes for this object are SiteID and PRNum.
The attributes in this object are as follows:
| Attribute Name | Description |
|---|---|
BillTo | Identifier of the company that will receive the bill. |
BillToAttn | Person to whom the bill should be sent. |
| BuyAhead | Is this a buy ahead rate, ie entered directly by the user and not calculated from the list of active exchange rate. |
| ChangeBy, ChangeDate | The name of the person who last modified the PR; the date on which this PR was last modified. |
Contact | Name of the primary person to contact at the vendor. |
CurrencyCode | Currency of the PR. |
| CustomerNum | Number used by an outside company to identify your company. |
| Description | Short description of the Purchase Requisition. Also accommodates a long description. |
| ExchangeDate, ExchangeRate | Date of the exchange rate; exchange rate at the time of PR approval. |
| ExchangeRate2 | Base exchange rate 2. |
| ExternalRefID | External reference ID. |
| FOB | Freight on board point. The point where responsibility and liability are transferred. |
| FreightTerms | The terms under which the shipment is made. |
| HistoryFlag | Flag indicating the history Purchase Requisition (closed or cancelled). |
Inclusive1 thru Inclusive5 | Flag indicating if the PR total is inclusive of Tax1 thru Tax5. |
| Internal | Indicates it's an internal PR or not. Yes means the item vendor is within your company. No means the vendor is external to your company. |
| IssueDate | Date and time the PR was requested. |
| LDKey | Long Description Key. This is a link to text stored in the LongDescription table. |
| OrgID | Identifier of the organization for this PR.
|
| OwnerSysID | A string identifying the system owner. |
| PaymentTerms | Specified terms of payment for this vendor. |
| PayOnReceipt | Indicates if there is a payment on receipt agreement with the vendor. |
| PcardExpDate | The expiry date of the procurement card (mm/yy). Crosses over from MR.PcardExpDate or Labor.PcardExpDate. |
| PcardNum | The number of the procurement card. Crosses over from MR.PcardNum or Labor.PcardNum. |
| PcardType | The type of procurement card. Crosses over from MR.PcardType or Labor.PcardType. |
| PcardVerification | Procurement card verification value. |
Priority | Indicates the priority with which this PR should be handled. |
| PRNum | Purchase requisition number. |
| RequestedBy | The person who requests this PR. |
| RequiredDate | Date by which the requisition line items are needed. |
ShipTo | Identifier of the company to whom this PR will be shipped. |
ShipToAttn | Person to whom the items should be shipped. |
| ShipVia | Specifies how the goods should be shipped (First class mail, FedEx, UPS, etc.). |
| SiteID | Identifier of the site for this PR.
|
| Status | The status of the PR. |
| StatusDate | The date on which the status of this PR was changed. |
Supervisor | The person responsible for approving the work to be done. |
TotalCost | The total cost of the PR, including taxes. |
TotalTax1 thru TotalTax5 | Total amount of Tax1 -Tax5 owed. This is included in the total cost if Inclusive1 - Inclusive5 is YES. |
Vendor | Identifier of the vendor to whom the PR would be sent. |
| WFActive | Flag to indicate if this PR is active in workflow. |
| WFID | Workflow ID. |
| PR1 thru PR10 | Extra fields. |
| PRLA1 thru PRLA5 | Extra crossover fields cross over from MR.MRLA1 thru MR.MRLA5 or LABOR.LA21 thru LABOR.LA25. |
| SenderSysID, SourceSysID | Column used by ERP-Integration (APIs). |
checkLimitWhenApproveonListTab, statusChangeButtonSigoption, targetStatusOptionMULTILANGCOPY, 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| Modifier and Type | Method and Description |
|---|---|
void |
add()
Adds a new Purchase Requisition.
|
void |
addInvVendorItemsToPRLine(MboSetRemote invVendorSetRemote)
Loops through the InvVendorSet that is passed in and creates a new POLine with the itemnum on the selected InvVendor
rows.
|
boolean |
allLinesHaveContracts()
Checks to see if all the PRLines have contract references.
|
boolean |
allLinesHaveContracts(boolean createPO) |
void |
appValidate()
This method is called before save for last minute validations.
|
void |
canDelete()
Throw exception when trying to delete a PR.
|
void |
changePRStatus(MboRemote fromPRLine)
This method is for integration to use.
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
This method is overridden to add a wrapper to exceptions thrown during change status
and to write warnings whether or not the status change is successful
|
boolean |
checkingBeforeCreatePOCont(boolean createPO)
Checking for different conditions before creating a PO/Contract.
|
void |
checkWAPPRStatus()
Checks if the PR status is WAPPR.
|
void |
copySpareParts(MboSetRemote sparePartSet)
Adds the spare parts to the PRs PRLines.
|
void |
createContractFromPR(java.lang.String contractNum,
java.lang.String description,
java.lang.String contractType)
An interface for UI to create one contract from a PR.
|
MboRemote |
createPOHeaderFromPR(java.lang.String ponum,
java.lang.String description,
MboRemote sourceRemote)
This method copies the PR header info to a new PO header.
|
java.util.Vector |
createPOsFromPR(java.util.Date date)
Overloaded form of createPOsFromPR().
|
java.util.Vector |
createPOsFromPR(java.util.Date date,
java.lang.String ponum,
boolean isApprove,
java.lang.String description)
Overloaded form of createPOsFromPR().
|
java.util.Vector |
createPOsFromPR(java.util.Date date,
java.lang.String ponum,
boolean isApprove,
java.lang.String description,
boolean fromUI)
This method creates POs for this PR.
|
void |
createPOsFromPR(java.lang.String ponums,
java.lang.String description)
Overloaded form of createPOsFromPR().
|
PRLineRemote |
createPRLineFromReorder(java.lang.String description,
java.lang.String storeloc,
ReorderRemote reoRemote)
This method will create a PR Line item and return a reference to it.
|
MboRemote |
createRFQHeaderFromPR(java.lang.String rfqnum)
Copies the PR Header info to the RFQ Header.
|
MboRemote |
duplicate()
Creates a icate PR.
|
MboRemote |
findMatchedPOVendor(MboRemote targetMbo,
java.util.Hashtable poHashtable)
Return a matched PO with the contract.
|
void |
generateAutoKey()
Purchase Requisition object allows the generation of autokeys.
|
boolean |
getCreatedByReorderFlag() |
java.util.Vector |
getPOsCreateByApproval()
Returns a vector of releases created by approving a PR.
|
java.lang.String |
getProcess()
Returns the work flow process for PRs.
|
java.lang.String |
getStatusListName()
Returns the string "PRSTATUS".
|
void |
init()
Initialize the Purchase Requisition by setting certain fields to read only.
|
void |
initFieldFlagsOnMbo(java.lang.String attrName)
The logic of setting the readonly and required field flags to the mbo.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
Called whenever a relationship is initialized or reset from this Mbo to another MboSet.
|
boolean |
isLineContNumFilled(MboSetRemote lineSet)
Checks the given PR line(s) contractnum/ponum field(s) for null or not null.
|
void |
modify()
Called whenever a change is made to the attributes of a MBO.
|
void |
processMR(MboSetRemote mrLineSet)
Process MR.
|
void |
save()
Checkes to see if any PRLines are deleted and if if in fact they are, it gets
that wpmaterial line with the prnum, prlinenum combination and removes the
pr and the prlinenum reference from that wpmaterial.
|
void |
setBillToShipToInfo() |
void |
setPOTypeToConsignment(MboRemote noContractPOHeader,
MboRemote prLine,
boolean fromUI)
CASE1-Manually created PR/PO -If the reorder is for consignment items and no contract ref on PR header, PO Type will be the 'STD'
CASE2-Reoorder creates PO - Reorder option (create unapproved PO) - If the reorder is for consignment items contract ref on PR header is of PURCHASE.
|
void |
setPromptPO(boolean setPromptPO)
Set usePromptPO flag.
|
void |
setRelatedMboEditibility(java.lang.String relationName,
MboSetRemote mboSet)
Sets the read/only flag for the related set if the set exists.
|
void |
unapproveMR()
Unapprove MR.
|
void |
unapproveMR(MboRemote prLine)
Unapprove MR.
|
void |
unapproveMR(java.lang.String itemnum)
Unapprove MR.
|
boolean |
usePromptPO()
Return usePromptPO flag.
|
void |
validatePR()
09-13690: validate refwo,assetnum,location,storeloc at approve time
|
boolean |
wapprPRCreatePO()
If MaxVar PRAPPROVAL is true and PR status is WAPPR, cannot create a PO.
|
addConsignmentItems, checkConsignmentItems, checkConsignmentItemsInContractSet, checkContractType, checkInvalidItemStatus, compareCopyTerms, copyAllTerms, copyContarctTerm, copyContractToPOPR, copyFromContract, copyTerms, createContractHeader, getContractAuth, getExchangeRate, getExchangeRate2, getInvoiceMgtMaxVar, getPOPRLineSet, getShowconswarningFlag, noLimitWhenApprove, nullVendor, nullVendorContract, recalculateTotalCost, recalculateTotalTax, setPOPRLineSet, setShowconswarningFlag, showConsVendorWarningMessage, showConsVendorWarningMessageForContractscanChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOptionaddMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, 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, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, 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, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyContarctTerm, copyContractToPOPR, copyTerms, getPOPRLineSet, noLimitWhenApprove, nullVendor, nullVendorContract, showConsVendorWarningMessageForContractscanChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOptionaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, 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, validateAttributespublic PR(MboSet ms) throws MXException, java.rmi.RemoteException
ms - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getProcess()
public java.lang.String getStatusListName()
getStatusListName in interface StatefulMboRemotegetStatusListName in class StatefulMbopublic void init()
throws MXException
init in class MboMXExceptionpublic void initFieldFlagsOnMbo(java.lang.String attrName)
throws MXException
MboinitFieldFlagsOnMbo in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
| Attribute Name | Attribute Value |
|---|---|
| billto | Site's billtoaddresscode |
| billtoattn | Site's billtolaborcode |
| buyahead | No |
| changeby | Current Username |
| changedate | Current Date |
| currencycode | Base Currency |
| historyflag | No |
| inclusive1 - inclusive5 | No |
| internal | No |
| issuedate | Current Date |
| payonreceipt | No |
| priority | 0 (zero) |
| requestedby | Login User Name |
| shipto | Site's shiptoaddresscode |
| shiptoattn | Site's shiptolaborcode |
| status | Waiting for Approval |
| statusdate | Current Date |
| totalcost | 0 (zero) |
| totaltax1 - totaltax5 | 0 (zero) |
| wfactive | No |
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpsdi.app.signature.SignatureService#getlaborForuserAndOrgpublic void setBillToShipToInfo()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
appValidate in class MboMXApplicationException(po, - fromsiterequired) is thrown when it's internal po and fromsite or storeloc is null.MXExceptionjava.rmi.RemoteExceptionpublic PRLineRemote createPRLineFromReorder(java.lang.String description, java.lang.String storeloc, ReorderRemote reoRemote) throws MXException, java.rmi.RemoteException
createPRLineFromReorder in interface PRRemoteitemnum - the item number for the linedescription - the description for the linestoreloc - the storeroom location for the linereoRemote - the reorder object that will further create a PO from this PRMXExceptionjava.rmi.RemoteExceptionpsdi.app.pr.PR#createPRLineFromReorder(String, String, String, ReorderRemote)public java.util.Vector createPOsFromPR(java.util.Date date)
throws MXException,
java.rmi.RemoteException
createPOsFromPR in interface PRRemotedate - the date when the new PO is createdMXApplicationException - (pr, cannotcreatepo) is thrown if pr status is not APPR.MXExceptionjava.rmi.RemoteExceptioncreatePOsFromPR(Date,Vector,boolean,String)public void createPOsFromPR(java.lang.String ponums,
java.lang.String description)
throws MXException,
java.rmi.RemoteException
createPOsFromPR in interface PRRemoteponums - the vector that contains the new ponums to be created that can be specified by the userdescription - the PO's descriptionMXExceptionjava.rmi.RemoteExceptioncreatePOsFromPR(Date,Vector,boolean,String)public java.util.Vector createPOsFromPR(java.util.Date date,
java.lang.String ponum,
boolean isApprove,
java.lang.String description)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptioncreatePOsFromPR(Date,Vector,boolean,String,boolean)public java.util.Vector createPOsFromPR(java.util.Date date,
java.lang.String ponum,
boolean isApprove,
java.lang.String description,
boolean fromUI)
throws MXException,
java.rmi.RemoteException
date - the date when the new PO is createdponums - the vector that contains the new ponums to be created that can be specified by the userisApprove - a boolean that specifies if approve or create PO from PR called this methoddescription - the PO's descriptionMXExceptionjava.rmi.RemoteExceptionpublic MboRemote createPOHeaderFromPR(java.lang.String ponum, java.lang.String description, MboRemote sourceRemote) throws MXException, java.rmi.RemoteException
ponum - the ponum of the newly created PO. Pass null if the PONUM is to be autokeyed.MXExceptionjava.rmi.RemoteExceptionpublic java.util.Vector getPOsCreateByApproval()
throws java.rmi.RemoteException
getPOsCreateByApproval in interface PRRemotejava.rmi.RemoteExceptiongetPOsCreateByApproval()public MboRemote createRFQHeaderFromPR(java.lang.String rfqnum) throws MXException, java.rmi.RemoteException
createRFQHeaderFromPR in interface PRRemoterfqnum - the rfq numberMXExceptionjava.rmi.RemoteExceptioncreateRFQHeaderFromPR(String)public MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate in interface MboRemoteduplicate in class MboMXExceptionjava.rmi.RemoteExceptionloadSkipFieldCopyHashSet()public void generateAutoKey()
throws java.rmi.RemoteException,
MXException
generateAutoKey in interface MboRemotegenerateAutoKey in class Mbojava.rmi.RemoteExceptionMXExceptionMbo.generateAutoKey()public void modify()
throws MXException,
java.rmi.RemoteException
modify in class MboMXExceptionjava.rmi.RemoteExceptionpublic void initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
throws MXException,
java.rmi.RemoteException
initRelationship in class MborelationName - the relationship namemboSet - the mbosetMXExceptionjava.rmi.RemoteExceptionpublic void setRelatedMboEditibility(java.lang.String relationName,
MboSetRemote mboSet)
throws MXException,
java.rmi.RemoteException
relationName - The relationship name of the related MboSet which need to set the read/only flag.MXExceptionjava.rmi.RemoteException#settings,
#setEditibilityFlagspublic void copySpareParts(MboSetRemote sparePartSet) throws MXException, java.rmi.RemoteException
copySpareParts in interface PRRemotesparePartSet - The set of spare parts from the UIMXExceptionjava.rmi.RemoteExceptioncopySpareParts(psdi.mbo.MboSetRemote)public void addInvVendorItemsToPRLine(MboSetRemote invVendorSetRemote) throws MXException, java.rmi.RemoteException
addInvVendorItemsToPRLine in interface PRRemoteMXExceptionjava.rmi.RemoteExceptionaddInvVendorItemsToPRLine(psdi.mbo.MboSetRemote)public void save()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
throws MXException,
java.rmi.RemoteException
changeStatus in interface StatefulMboRemotechangeStatus in class StatefulMbostatus - The new desired status. This is the translated status
(that is, the status code as it would have been entered by a user, or
valuelist.value), not
the internal status value (valuelist.maxvalue).date - The effective date of the new status (java.util.Date). If null
the current date/time is used.memo - A string briefly describing the circumstances of the change. The
memo can be null.accessModifier - A value of NOACCESSCHECK will cause the method not to call canChangeStatus.
Callers using this flag are responsible for ensuring that they are attempting a valid status change.MXException - Thrown if there is a problem.java.rmi.RemoteExceptionStatefulMbo.canChangeStatus(String)public boolean wapprPRCreatePO()
throws MXException,
java.rmi.RemoteException
wapprPRCreatePO in interface PRRemoteMXApplicationException - (pr, prmustbeappr) is thrown if PRAPPROVAL is true and PR status is WAPPR.MXExceptionjava.rmi.RemoteExceptionwapprPRCreatePO()public boolean allLinesHaveContracts(boolean createPO)
throws MXException,
java.rmi.RemoteException
allLinesHaveContracts in interface PRRemoteMXExceptionjava.rmi.RemoteExceptionallLinesHaveContracts(boolean)public boolean checkingBeforeCreatePOCont(boolean createPO)
throws MXException,
java.rmi.RemoteException
checkingBeforeCreatePOCont in interface PRRemoteMXApplicationException - (pr, prishistory) is thrown if PR is closed or cancelled.MXApplicationException - (po, internalpo) is thrown if it's an internal PR.MXApplicationException - (pr, prmustbeappr) is thrown if PRAPPROVAL is true and PR status is WAPPR.MXApplicationException - (pr, linesareassigned) is thrown if all PRLines have assigned to PO.MXExceptionjava.rmi.RemoteExceptionpsdi.jsp.app.pr.Actions#createpo,
psdi.jsp.app.pr.Actions#createcontpublic boolean usePromptPO()
throws MXException,
java.rmi.RemoteException
usePromptPO in interface PRRemoteMXExceptionjava.rmi.RemoteExceptionPRAppBean.CREATEPO()public void setPromptPO(boolean setPromptPO)
throws MXException,
java.rmi.RemoteException
setPromptPO in interface PRRemoteMXExceptionjava.rmi.RemoteExceptionPRAppBean.CREATEPO()public boolean allLinesHaveContracts()
throws MXException,
java.rmi.RemoteException
allLinesHaveContracts in interface PRRemoteMXExceptionjava.rmi.RemoteExceptionallLinesHaveContracts(boolean)public void createContractFromPR(java.lang.String contractNum,
java.lang.String description,
java.lang.String contractType)
throws MXException,
java.rmi.RemoteException
createContractFromPR in interface PRRemotecontractNum - the contract number to be created that can be specified by the userdescription - the contract descriptioncontractType - the contract type to be created that can be specified by the userMXExceptionjava.rmi.RemoteExceptionContractFromPRSet.execute()public boolean isLineContNumFilled(MboSetRemote lineSet) throws MXException, java.rmi.RemoteException
lineSet - The line mbo set being checkedMXExceptionjava.rmi.RemoteExceptioncreateContractFromPR(java.lang.String, java.lang.String, java.lang.String)public void checkWAPPRStatus()
throws MXException,
java.rmi.RemoteException
checkWAPPRStatus in interface PRRemoteMXApplicationException - (pr, onlywapprpr) is thrown if PR status is not WAPPR.MXExceptionjava.rmi.RemoteExceptionpsdi.jsp.app.pr.Actions#viewagreementspublic MboRemote findMatchedPOVendor(MboRemote targetMbo, java.util.Hashtable poHashtable) throws MXException, java.rmi.RemoteException
contractRemote - The Contract objectpoHashtable - PO hashtableMXExceptionjava.rmi.RemoteExceptionpublic void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXApplicationException(pr, - cannotdeletepr) is thrown when trying to delete a PR.MXExceptionjava.rmi.RemoteExceptionpublic void unapproveMR(MboRemote prLine) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void unapproveMR()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic void unapproveMR(java.lang.String itemnum)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void processMR(MboSetRemote mrLineSet) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionunapproveMR(String),
unapproveMR(MboRemote)public void validatePR()
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic void changePRStatus(MboRemote fromPRLine) throws java.rmi.RemoteException, MXException
fromPRLine - PRLine MBOjava.rmi.RemoteExceptionMXExceptionpublic boolean getCreatedByReorderFlag()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setPOTypeToConsignment(MboRemote noContractPOHeader, MboRemote prLine, boolean fromUI) throws MXException, java.rmi.RemoteException
fromUI - If this is false that means this the reorder process and not the manual creation.noContractPOHeader - prLine - MXExceptionjava.rmi.RemoteException