public class PurchasingLineMbo extends Mbo implements PurchasingLineMboRemote
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 |
|---|
PurchasingLineMbo(MboSet ms)
Construct the PRLine or POLine
|
| Modifier and Type | Method and Description |
|---|---|
void |
appValidate()
Application validation routine called before the PurchasingLineMbo object is saved.
|
void |
checkConsignment(MboRemote lineMboRemote,
MboRemote inventoryRec)
This method called from PO/PR validation classes for itemnum and storeloc.
|
boolean |
compareContractWithPOPR(MboRemote contractRemote,
MboRemote poprHeader,
MboRemote contractAuth)
Compare Contract vendor, shipvia, fob, paymentterms, freightterms, inclusive1 - inclusive5,
ContractAuth billto and billtoattn with PO/PR header's info.
|
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 |
copyLeaseSuspAcct(MboRemote contractRemote)
If the contract is Lease type, copy leasesuspacct to POLine/PRLine glcreditacct.
|
void |
createContractLine(MboRemote newContract)
Create ContractLine from this POLine or PRLine.
|
boolean |
foundOtherLines()
If there is any other line with vendor exists, return true.
|
void |
getDefaultTaxCodes(MboRemote itemRemote,
MboRemote invVendor)
This method gets taxexempt and taxcodes for the poline/prline .
|
void |
getDefaultTaxExempt(MboRemote itemRemote,
MboRemote invVendor)
This method gets taxexempt and taxcodes for the poline/prline .
|
void |
getInvVendorValues()
Get InvVendor info for this item on POLine/PRLine.
|
void |
getInvVendorValues(boolean callingfromContition)
Get InvVendor info for this item on POLine/PRLine.
|
MRRemote |
getMRPassedIn()
Return the reference of the MR from which this PurchasingLineMbo was created.
|
java.lang.String |
getRecentItemNum()
09-23190
|
void |
getTaxCodes()
This method gets taxexempt and taxcodes for the poline/prline .
|
void |
initFieldFlagsOnMbo(java.lang.String attrName)
The logic of setting the readonly and required field flags to the mbo.
|
boolean |
isAddLinesOnUse(MboRemote contractRemote)
Get Purchase/Blanket/Price Contract AddLinesOnUse boolean value.
|
void |
isValidAssetIfAny()
09-13690
|
void |
isValidLocationIfAny()
09-13690
|
void |
isValidMRIfAny()
This method checks if the MRNUM on the POLINE is an approved MR if not it throws an exception.
|
void |
isValidRefWOIfAny()
09-13690
|
void |
isValidStoreLocIfAny()
09-13690
|
void |
setConversionFactor()
Sets the conversion factor, if it can be determined.
|
void |
setDefaultOrderPrice()
Get default order price.
|
void |
setDefaultValues()
Insures that default value for LINETYPE is set first if this attribute has a default value
|
void |
setFieldsInitDuplicate()
Set fields read only or editable based on the line type.
|
void |
setMRPassedIn(MRRemote mr)
Assign the MR reference passed in to this.mrPassedIn
|
void |
setOrderUnit(MboRemote inventory,
java.lang.String orderOrIssueUnitAttr)
sets the OrderUnit attribute.
|
void |
setPriceQtyFields()
Based on ContractLine ChgPriceOnUse and ChgQtyOnUse value to set line cost, unit cost,
order unit and quantity to be read only or editable.
|
void |
setReceiptTolerance(MboRemote Itemorg,
MboRemote Invvendor)
This method set ReceiptTolerance for the poline .
|
void |
setRecentItemNum(java.lang.String itemNum)
09-23190
|
void |
setUnitCost(boolean gettingPriceFromInvCost,
double price)
Set unit cost.
|
void |
validateDeliveryDate()
Validation for ReqDeliveryDate and VenDeliveryDate in POLine/PRLine.
|
add, addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, 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, init, 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, 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, waitadd, addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, 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, validateAttributespublic PurchasingLineMbo(MboSet ms) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void initFieldFlagsOnMbo(java.lang.String attrName)
throws MXException
MboinitFieldFlagsOnMbo in class MboMXExceptionpublic void setDefaultValues()
setDefaultValues in class MboMbo.setDefaultValues()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 void getTaxCodes()
throws MXException,
java.rmi.RemoteException
getTaxCodes in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptiongetTaxCodes()public void getDefaultTaxExempt(MboRemote itemRemote, MboRemote invVendor) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void getDefaultTaxCodes(MboRemote itemRemote, MboRemote invVendor) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setReceiptTolerance(MboRemote Itemorg, MboRemote Invvendor) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setMRPassedIn(MRRemote mr) throws java.rmi.RemoteException
setMRPassedIn in interface PurchasingLineMboRemoteThe - MR from which this PurchasingLineMbo was created.java.rmi.RemoteExceptionsetMRPassedIn(psdi.app.mr.MRRemote)public MRRemote getMRPassedIn() throws java.rmi.RemoteException
getMRPassedIn in interface PurchasingLineMboRemotejava.rmi.RemoteExceptiongetMRPassedIn()public void isValidMRIfAny()
throws MXException,
java.rmi.RemoteException
isValidMRIfAny in interface PurchasingLineMboRemoteMXApplicationException(po, - MRMissing) is thrown when the MRNUM mentioned on this POLine or PRLine does not exist.MXExceptionjava.rmi.RemoteExceptionisValidMRIfAny()public void setOrderUnit(MboRemote inventory, java.lang.String orderOrIssueUnitAttr) throws MXException, java.rmi.RemoteException
setOrderUnit in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptionsetOrderUnit(MboRemote inventory,String orderOrIssueUnitAttr)public void setDefaultOrderPrice()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void getInvVendorValues()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void getInvVendorValues(boolean callingfromContition)
throws MXException,
java.rmi.RemoteException
callingfromContition - If callingfromContition is true, it was called from Condition Code validationMXExceptionjava.rmi.RemoteExceptionpublic void setUnitCost(boolean gettingPriceFromInvCost,
double price)
throws MXException,
java.rmi.RemoteException
gettingPriceFromInvCost - To indicate the price is coming from InvCost.price - The priceMXExceptionjava.rmi.RemoteExceptionpublic void createContractLine(MboRemote newContract) throws MXException, java.rmi.RemoteException
newContract - The newly created Contract from PO/PR.MXExceptionjava.rmi.RemoteExceptionPO.createContractFromPO(java.lang.String, java.lang.String, java.lang.String),
PR.createContractFromPR(java.lang.String, java.lang.String, java.lang.String)public void setPriceQtyFields()
throws MXException,
java.rmi.RemoteException
setPriceQtyFields in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptionsetPriceQtyFields()public boolean isAddLinesOnUse(MboRemote contractRemote) throws MXException, java.rmi.RemoteException
isAddLinesOnUse in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptionisAddLinesOnUse(MboRemote)public boolean foundOtherLines()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void validateDeliveryDate()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean compareContractWithPOPR(MboRemote contractRemote, MboRemote poprHeader, MboRemote contractAuth) throws MXException, java.rmi.RemoteException
contractRemote - The Contract object.poprHeader - The PO/PR object.contractAuth - The ContractAuth object.MXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
| GROUP | KEY | REASON | |
|---|---|---|---|
| inventory | conversionDoesNotExistNullMU | if a measure unit could not be determined. | |
| inventory | conversionDoesNotExist | if a conversion unit cannot be found. | |
| inventory | conversionDoesNotExistInstruction | in addition, if either of the above exceptions are thrown. |
appValidate in class MboMXExceptionjava.rmi.RemoteExceptionpublic void setConversionFactor()
throws MXException,
java.rmi.RemoteException
setConversionFactor in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptionInventoryService.getConversionFactor(UserInfo userInfo, String fromUOM, String toUOM, String itemSetID, String itemNum)public void setFieldsInitDuplicate()
throws MXException,
java.rmi.RemoteException
setFieldsInitDuplicate in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptionPRLine.init(),
POLine.init(),
PR.duplicate(),
PO.duplicate()public void copyLeaseSuspAcct(MboRemote contractRemote) throws MXException, java.rmi.RemoteException
copyLeaseSuspAcct in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptioncopyLeaseSuspAcct(MboRemote)public void isValidRefWOIfAny()
throws MXException,
java.rmi.RemoteException
isValidRefWOIfAny in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void isValidAssetIfAny()
throws MXException,
java.rmi.RemoteException
isValidAssetIfAny in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void isValidLocationIfAny()
throws MXException,
java.rmi.RemoteException
isValidLocationIfAny in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void isValidStoreLocIfAny()
throws MXException,
java.rmi.RemoteException
isValidStoreLocIfAny in interface PurchasingLineMboRemoteMXExceptionjava.rmi.RemoteExceptionpublic void checkConsignment(MboRemote lineMboRemote, MboRemote inventoryRec) throws MXException, java.rmi.RemoteException
lineMboRemote - inventoryRec - MXExceptionjava.rmi.RemoteExceptionpublic void setRecentItemNum(java.lang.String itemNum)
throws MXException,
java.rmi.RemoteException
itemNum - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getRecentItemNum()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException