public abstract class PurchasingMbo extends StatefulMbo implements PurchasingMboRemote
Modifier and Type | Field and Description |
---|---|
boolean |
checkLimitWhenApprove
During approval of PO, the approval limit needs to be checked.
|
onListTab, statusChangeButtonSigoption, targetStatusOption
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 |
---|
PurchasingMbo(MboSet ms)
Construct the PR or PO
|
Modifier and Type | Method and Description |
---|---|
void |
addConsignmentItems(MboSetRemote mboLineSet,
java.util.Vector<MboRemote> itemsVec)
This method adds the consignment contract items when user selects yes on the warning message.
|
java.util.Vector<MboRemote> |
checkConsignmentItems(MboSetRemote itemSetRemote,
java.lang.String storeloc)
This method creates a vector for mbos where the consignment vendor is different from the PO/PR header vendor for invvendor/sparepart
items.
|
java.util.Vector<MboRemote> |
checkConsignmentItemsInContractSet(MboSetRemote contractLineSetRemote,
java.lang.String storeloc)
This method creates a vector for mbos where the consignment vendor is different from the PO/PR header vendor for contract items.
|
MboRemote |
checkContractType(MboRemote contractRemote)
Find the corresponding type of Contract object for a given Contract.
|
boolean |
checkInvalidItemStatus(MboSetRemote invVendorSetRemote)
Check if item is valid before copied to PRLine/POLine.
|
void |
compareCopyTerms(MboRemote fromMbo)
This method will copy the fromMbo's corresponding Terms to current Mbo's Terms.
|
void |
copyAllTerms(MboSetRemote toTermsSet)
This method will copy all the terms that exist for the current Mbo (PO, PR, Contract)
to the MboSet being passed in.
|
void |
copyContarctTerm(MboRemote contractRemote)
Copy contract terms to PO.
|
void |
copyContractToPOPR(MboSetRemote sourceContractLineSet)
Copy ContractLines to the current PO/PR.
|
void |
copyFromContract(MboRemote contractRemote,
MboRemote contractAuthFind)
Copy contract info to PO/PR header.
|
void |
copyTerms(MboSetRemote termsSet)
This method will copy the selected terms to the set calling Mbo's corresponding Terms.
|
MboRemote |
createContractHeader(java.lang.String contractNum,
java.lang.String description,
java.lang.String contractType)
This method copies the PO/PR infomation to the Contract Header and returns the Contract header.
|
MboRemote |
getContractAuth(MboRemote contractRemote)
Return a ContractAuth object.
|
double |
getExchangeRate(java.util.Date date)
Get the exchangerate between the PO's or the Contract's currency and the basecurrency.
|
double |
getExchangeRate2(java.util.Date date)
Get the exchangerate2 if there is a base currency2.
|
boolean |
getInvoiceMgtMaxVar()
Private method to get the "INVOICEMGT" maxvar.
|
MboSetRemote |
getPOPRLineSet()
This method returns the polineset/prlineset for the consignment items to be added.
|
boolean |
getShowconswarningFlag()
This method returns the showconswarning flag.
|
void |
noLimitWhenApprove()
Tell this POMbo, that don't check limit when approving the PO.
|
void |
nullVendor()
Throws an exception if the vendor on the PR/PO Header is null.
|
void |
nullVendorContract()
Throws an exception if the contract reference on the PR/PO Header is not null.
|
void |
recalculateTotalCost()
Used to set the value of the pretaxtotal(sum of linecost)
after the deletion of one poline.
|
double |
recalculateTotalTax()
This method returns the total of the totaltax1-5
based on inclusive1-5.
|
void |
setPOPRLineSet(MboSetRemote mboLineSet)
This method sets the polineset/prlineset for the consignment items.
|
void |
setShowconswarningFlag(boolean flag)
This method sets the showconswarning flag.
|
java.util.Vector<MboRemote> |
showConsVendorWarningMessage(MboSetRemote invVendorSetRemote,
java.util.Vector<MboRemote> vendorItemsVec,
java.lang.String storeloc)
This method displays the warning message in case the PO vendor does not match with inventory consignment vendor for invvendor/sparepart items.
|
void |
showConsVendorWarningMessageForContracts(MboSetRemote mboLineSet)
This method displays the warning message in case the PO vendor does not match with inventory consignment vendor for contract items.
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getStatusListName, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
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, 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, 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
canChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getStatusListName, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
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 boolean checkLimitWhenApprove
public PurchasingMbo(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void recalculateTotalCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double recalculateTotalTax() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void noLimitWhenApprove() throws java.rmi.RemoteException
noLimitWhenApprove
in interface PurchasingMboRemote
java.rmi.RemoteException
noLimitWhenApprove()
public boolean getInvoiceMgtMaxVar() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void copyTerms(MboSetRemote termsSet) throws MXException, java.rmi.RemoteException
copyTerms
in interface PurchasingMboRemote
termsSet
- the pass in Term Set.MXException
java.rmi.RemoteException
psdi.app.common.purchasing
public void copyAllTerms(MboSetRemote toTermsSet) throws MXException, java.rmi.RemoteException
termsSet
- the pass in Term Set.MXException
java.rmi.RemoteException
public void compareCopyTerms(MboRemote fromMbo) throws MXException, java.rmi.RemoteException
fromMbo
- the base mbo to be copied from.MXException
java.rmi.RemoteException
public MboRemote createContractHeader(java.lang.String contractNum, java.lang.String description, java.lang.String contractType) throws MXException, java.rmi.RemoteException
contractNum
- 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 userMXException
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 double getExchangeRate(java.util.Date date) throws MXException, java.rmi.RemoteException
date
- MXException
java.rmi.RemoteException
public double getExchangeRate2(java.util.Date date) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void copyFromContract(MboRemote contractRemote, MboRemote contractAuthFind) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getContractAuth(MboRemote contractRemote) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean getShowconswarningFlag() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setShowconswarningFlag(boolean flag) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void copyContractToPOPR(MboSetRemote sourceContractLineSet) throws MXException, java.rmi.RemoteException
copyContractToPOPR
in interface PurchasingMboRemote
sourceContractLineSet
- The ContractLineSet being copied.MXException
java.rmi.RemoteException
psdi.app.common.purchasing.PurchasingMbo#copyContractToPOPR()
public java.util.Vector<MboRemote> checkConsignmentItemsInContractSet(MboSetRemote contractLineSetRemote, java.lang.String storeloc) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Vector<MboRemote> checkConsignmentItems(MboSetRemote itemSetRemote, java.lang.String storeloc) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setPOPRLineSet(MboSetRemote mboLineSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboSetRemote getPOPRLineSet() throws MXException, java.rmi.RemoteException
getPOPRLineSet
in interface PurchasingMboRemote
MXException
java.rmi.RemoteException
getPOPRLineSet()
public void showConsVendorWarningMessageForContracts(MboSetRemote mboLineSet) throws MXException, java.rmi.RemoteException
showConsVendorWarningMessageForContracts
in interface PurchasingMboRemote
invVendorSetRemote
- vendorItemsVec
- storeloc
- MXException
java.rmi.RemoteException
showConsVendorWarningMessageForContracts(psdi.mbo.MboSetRemote)
public java.util.Vector<MboRemote> showConsVendorWarningMessage(MboSetRemote invVendorSetRemote, java.util.Vector<MboRemote> vendorItemsVec, java.lang.String storeloc) throws MXException, java.rmi.RemoteException
invVendorSetRemote
- vendorItemsVec
- storeloc
- MXException
java.rmi.RemoteException
public void addConsignmentItems(MboSetRemote mboLineSet, java.util.Vector<MboRemote> itemsVec) throws MXException, java.rmi.RemoteException
mboLineSet
- itemsVec
- MXException
java.rmi.RemoteException
public void copyContarctTerm(MboRemote contractRemote) throws MXException, java.rmi.RemoteException
copyContarctTerm
in interface PurchasingMboRemote
contractRemote
- The Contract Mbo.MXException
java.rmi.RemoteException
psdi.app.common.purchasing.PurchasingMbo#copyContarctTerm()
public void nullVendor() throws MXException, java.rmi.RemoteException
nullVendor
in interface PurchasingMboRemote
MXApplicationException("po",
- "vendorIsNull");MXException
java.rmi.RemoteException
nullVendor()
public void nullVendorContract() throws MXException, java.rmi.RemoteException
nullVendorContract
in interface PurchasingMboRemote
MXApplicationException("po",
- "contractrefisnotnull") is throw if contract reference in PR/PO header is not nullMXException
java.rmi.RemoteException
nullVendorContract()
public MboRemote checkContractType(MboRemote contractRemote) throws MXException, java.rmi.RemoteException
contractRemote
- The Contract objectMXException
java.rmi.RemoteException
public boolean checkInvalidItemStatus(MboSetRemote invVendorSetRemote) throws MXException, java.rmi.RemoteException
invVendorSetRemote
- The Inventory Set objectMXException
java.rmi.RemoteException