public class PurchasingLineMbo extends Mbo implements PurchasingLineMboRemote
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 |
---|
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, 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, init, 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, 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, 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, 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, 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 PurchasingLineMbo(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void initFieldFlagsOnMbo(java.lang.String attrName) throws MXException
Mbo
initFieldFlagsOnMbo
in class Mbo
MXException
public void setDefaultValues()
setDefaultValues
in class Mbo
Mbo.setDefaultValues()
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 void getTaxCodes() throws MXException, java.rmi.RemoteException
getTaxCodes
in interface PurchasingLineMboRemote
MXException
java.rmi.RemoteException
getTaxCodes()
public void getDefaultTaxExempt(MboRemote itemRemote, MboRemote invVendor) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void getDefaultTaxCodes(MboRemote itemRemote, MboRemote invVendor) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setReceiptTolerance(MboRemote Itemorg, MboRemote Invvendor) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setMRPassedIn(MRRemote mr) throws java.rmi.RemoteException
setMRPassedIn
in interface PurchasingLineMboRemote
The
- MR from which this PurchasingLineMbo was created.java.rmi.RemoteException
setMRPassedIn(psdi.app.mr.MRRemote)
public MRRemote getMRPassedIn() throws java.rmi.RemoteException
getMRPassedIn
in interface PurchasingLineMboRemote
java.rmi.RemoteException
getMRPassedIn()
public void isValidMRIfAny() throws MXException, java.rmi.RemoteException
isValidMRIfAny
in interface PurchasingLineMboRemote
MXApplicationException(po,
- MRMissing) is thrown when the MRNUM mentioned on this POLine or PRLine does not exist.MXException
java.rmi.RemoteException
isValidMRIfAny()
public void setOrderUnit(MboRemote inventory, java.lang.String orderOrIssueUnitAttr) throws MXException, java.rmi.RemoteException
setOrderUnit
in interface PurchasingLineMboRemote
MXException
java.rmi.RemoteException
setOrderUnit(MboRemote inventory,String orderOrIssueUnitAttr)
public void setDefaultOrderPrice() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void getInvVendorValues() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void getInvVendorValues(boolean callingfromContition) throws MXException, java.rmi.RemoteException
callingfromContition
- If callingfromContition is true, it was called from Condition Code validationMXException
java.rmi.RemoteException
public void setUnitCost(boolean gettingPriceFromInvCost, double price) throws MXException, java.rmi.RemoteException
gettingPriceFromInvCost
- To indicate the price is coming from InvCost.price
- The priceMXException
java.rmi.RemoteException
public void createContractLine(MboRemote newContract) throws MXException, java.rmi.RemoteException
newContract
- The newly created Contract from PO/PR.MXException
java.rmi.RemoteException
PO.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 PurchasingLineMboRemote
MXException
java.rmi.RemoteException
setPriceQtyFields()
public boolean isAddLinesOnUse(MboRemote contractRemote) throws MXException, java.rmi.RemoteException
isAddLinesOnUse
in interface PurchasingLineMboRemote
MXException
java.rmi.RemoteException
isAddLinesOnUse(MboRemote)
public boolean foundOtherLines() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void validateDeliveryDate() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public 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.MXException
java.rmi.RemoteException
public 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 Mbo
MXException
java.rmi.RemoteException
public void setConversionFactor() throws MXException, java.rmi.RemoteException
setConversionFactor
in interface PurchasingLineMboRemote
MXException
java.rmi.RemoteException
InventoryService.getConversionFactor(UserInfo userInfo, String fromUOM, String toUOM, String itemSetID, String itemNum)
public void setFieldsInitDuplicate() throws MXException, java.rmi.RemoteException
setFieldsInitDuplicate
in interface PurchasingLineMboRemote
MXException
java.rmi.RemoteException
PRLine.init()
,
POLine.init()
,
PR.duplicate()
,
PO.duplicate()
public void copyLeaseSuspAcct(MboRemote contractRemote) throws MXException, java.rmi.RemoteException
copyLeaseSuspAcct
in interface PurchasingLineMboRemote
MXException
java.rmi.RemoteException
copyLeaseSuspAcct(MboRemote)
public void isValidRefWOIfAny() throws MXException, java.rmi.RemoteException
isValidRefWOIfAny
in interface PurchasingLineMboRemote
MXException
java.rmi.RemoteException
public void isValidAssetIfAny() throws MXException, java.rmi.RemoteException
isValidAssetIfAny
in interface PurchasingLineMboRemote
MXException
java.rmi.RemoteException
public void isValidLocationIfAny() throws MXException, java.rmi.RemoteException
isValidLocationIfAny
in interface PurchasingLineMboRemote
MXException
java.rmi.RemoteException
public void isValidStoreLocIfAny() throws MXException, java.rmi.RemoteException
isValidStoreLocIfAny
in interface PurchasingLineMboRemote
MXException
java.rmi.RemoteException
public void checkConsignment(MboRemote lineMboRemote, MboRemote inventoryRec) throws MXException, java.rmi.RemoteException
lineMboRemote
- inventoryRec
- MXException
java.rmi.RemoteException
public void setRecentItemNum(java.lang.String itemNum) throws MXException, java.rmi.RemoteException
itemNum
- MXException
java.rmi.RemoteException
public java.lang.String getRecentItemNum() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException