public class PRLine extends PurchasingLineMbo implements PRLineRemote
This is a site level object.
The key attributes for this object are SiteId and PRLineId.
The attributes in this object are as follows:
Attribute Name | Description |
---|---|
CatalogCode | Vendor's catalog or product list number. The default is taken from Inventory Control. |
Category | Indicates if the item on the line is stocked, non-stocked or a special order part (STK, NS or SP). |
ChargeStore | Y/N field indicating whether the cost of this line should be added to the asset. The default value is N. |
Conversion | Conversion unit from order unit to issue unit. For example, if the order unit is a "BOX" and the conversion factor is 250, indicating that the box has a 250 quantity. * |
ConvertToRFQ | Y/N field indicating whether this PRLine should be allowed to convert to a request for quotation (RFQ) or not. The default value is N. |
Description | Short description of the item or service of this PRLine. Also accommodates a long description. |
EnterBy, EnterDate | The name of the person who entered this PRLine; the date on which this PRLine was entered. |
EnteredAsTask | Y/N field indicating whether this transaction created against a work order task. The default value is N. |
AssetNum | Asset to charge the cost of this line item.
|
FinCntrlId | Financial control identifier for this PRLine.
|
GLCreditAcct | GL credit account . Account code for the general ledger (GL) account credited with the cost of this line item. Any refunds or credits from the vendor or storeroom go to this GL account.
|
GLDebitAcct | GL debit account . Code for the GL account to be debited for the cost of this line item.
|
InspectionRequired | Y/N field indicating whether this item requires inspection upon receipt. The default value is N. |
IsDistributed | Y/N field indicating whether the cost on this PRLine is distributed or not. The default value is N. |
Issue | Issue on receipt. Y/N field Indicating whether the line item is a direct issue to a work order, GL account, location, or a piece of asset. The default value is N. |
ItemNum | Identifier for the item number on this PRLine.
|
LDKey | Long Description Key. This is a link to text stored in the LongDescription table. |
LineCost | Cost of the line item, calculated as quantity * unit cost. For service lines, this field could be directly entered by the user. |
LineCost2 | Line cost in base currency2. |
LineType | The type of PR Line. It could be ITEM, MATERIAL, EXTERNAL, SERVICE or SPORDER type. |
LoadedCost | The sum of line cost, taxes and special charges. |
Location | Location where the item or service will be used. If a work order is entered, the location is taken from the corresponding work order record.
|
Manufacturer | Code for the manufacturer who manufactures this item. |
ModelNum | Manufacturer's model number for the item. It is defaulted from inventory. |
MRLineNum | Line number of the requisition created in desktop requisitions if this PRLine is for an MRLine.
|
MRNum | Material requisition number that is linked to this PRLine. This PR was created from this MR in desktop requisitions.
|
OrderQty | The number of units of the item that have been ordered. If this PR was generated from Inventory, the default is the reorder quantity calculated in inventory. |
OrderUnit | Standard unit by which this item is ordered, such as dozen or box. |
OrgId | Identifier of the organization for this PR line.
|
PCardExpDate | The expiry date of the procurement card (mm/yy). Crosses over from MR.PCardExpDate. |
PCardNum | The number of the procurement card. Crosses over from MR.PCardNum. |
PCardType | The type of procurement card. Crosses over from MR.PCardType. |
PCardVerification | Procurement card verification value. |
POLineId | Internal PO line identifier. This attribute is uniquly generated and cannot be changed. |
POLineNum | Purchase order line number corresponding to the PR line. If a POLine (which is part of a PO) was created from this PRLine, the corresponding POLineNum and POLineId would be assigned to this PRLine.
|
PONum | If a POLine (which is part of a PO) was created from this PRLine, the corresponding PO number would be assigned to this PRLine.
|
PRLineId | Internal PR line identifier. This attribute is uniquly generated and does not change. |
PRLineNum | Unique line number that identifies this PRLine. |
PRNum | Unique PR identifier that identifies this PR. This is the key to the PRLine table.
|
ProrateService | Y/N field indicating whether the cost of service be prorated (loaded) to line items cost when invoicing. The default value is N. |
ReceiptReqd | Y/N field indicating whether a receipt is required during invoicing. The default value is Y. |
RefWO | Referenced workorder number for which the PR line is used. This value is determined by this PR line's non-persistent WONum and TaskId attributes. If this line's TaskId is non-null, RefWO is a child of WONum. RefWO is set to the WONum from the work order whose Parent and TaskId match this line's WONum and TaskId. If this line's TaskId is null, then RefWO is set to this line's WONum value. |
Remark | Any additional description or remarks that need to be specified for this PRLine. Long description enabled. |
ReqDeliveryDate | Date on which the delivery is required. |
RequestedBy | The username who requested this PRLine. |
RFQLineId | Internal RFQ line identifier. This attribute is uniquly and does not change. |
RFQLineNum | Request for quotation line number corresponding to the PR line.
|
RFQNum | If an RFQLine (part of an RFQ) was created using this PRLine, the corresponding RFQLineId, RFQLineNum and RFQNum from the RFQLine will be assigned to this PRLine. MAXIMO System does this automatically if you create an RFQ from a PR. |
SiteId | Identifier of the site for this PR line.
|
StoreLoc | The storeroom location that currently stocks the item if the request is for a storeroom and not for a direct issue.
|
TaskId | Non-persistent attribute used to maintain WorkOrder.TaskId through the PRLine object. The TaskId and WONum attributes determine the RefWO attribute. See the TaskId attribute defined in WorkOrder for more information.
|
Tax1 - Tax5 | Amount of Tax1 - Tax5 due on good being purchased. Tax1 - Tax5 is added to the grand tax-total only if Inclusive1 - Inclusive 5 is YES. |
Tax1Code - Tax5Code | The code associated with the Tax1 - Tax5. It is used to calculate the value of Tax1 - Tax5.
|
UnitCost | Cost of each unit on this PRLine. |
VendDeliveryDate | Estimated delivery date by the vendor. |
VendorPackCode | The vendor's pack code for the product. Indicates how the items will be packed. For example, BOX (12 to a box) or PALLET (30 to a pallet). |
VendorPackQuantity | Indicates the number of items included in a pack. |
VendorWarehouse | Vendor warehouse that the product will come from. |
WONum | Non-persistent attribute used to maintain WorkOrder.WONum through PRLine object. The WONum and TaskId attributes determine the RefWO attribute. If the TaskId is null, then RefWO will be equal to this attribute. If you specify a work order number, MAXIMO takes information from the work order to fill in location, asset and debit GL account fields. See the WONum attribute defined in WorkOrder for more information.
|
PRLALN1 - PRLALN5 | Extra fields. Crosses over from MRLine.MRLALN1 - MRLine.MRLALN5. |
RL1 - RL10 | Extra fields. |
RLIN1 - RLIN9 | Extra fields. |
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
Modifier and Type | Method and Description |
---|---|
void |
add()
Adds a new Purchase Requisition Line Item.
|
void |
afterAdd()
Called right after the new PRLine mbo is added to the PRLineSet.
|
void |
appValidate()
This method is automatically called before the save() is called.
|
void |
canDelete()
This method is called by the delete() method.
|
void |
canDistribute()
Checks if distribution can be allowed on a PRLine
Distribution cannot be allowed if
The pr line has to be saved before distributing costs.
|
void |
checkPRCostValidity()
Checks if the PRCost lines associated with this PRLine have correct values for percentage and loadedcost.
|
void |
clearClassification()
This method clears the classtructureid of the poline.
|
MboRemote |
copy(MboSetRemote mboset)
Over-ride the copy method of the Mbo.
|
void |
delete(long accessModifier)
Deletes a PRLine after successful completion of the canDelete() method.
|
java.lang.String[] |
getValidateOrder()
Validation Order for PRLine attributes.
|
boolean |
getVendorItem()
Return true if the action is from Vendor Item page.
|
void |
init()
Initialization routine.
|
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 initailized or reset from this Mbo to another MboSet.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Set value for PRNUM.
|
void |
save()
This saves the PRLine and all related Mbos
|
void |
setNullValuesToContractVariables()
This method sets the values of the Contract variables namely the contractnum, contractlinenum, contractlineid to null.
|
void |
setNullValuesToPOVariables()
This method sets the values of the PO variables namely the ponum, polinenum, polineid to null.
|
void |
setVendorItem(boolean value)
Set fromVendorItem variable.
|
MboSetRemote |
smartFindByObjectName(java.lang.String sourceObj,
java.lang.String targetAttrName,
java.lang.String value,
boolean exact)
Find a set of records of the object of the specified the application
by the specified attribute and values of the current record.
|
void |
undelete()
This method un-deletes a PRLine that has been marked for deletion.
|
checkConsignment, compareContractWithPOPR, copyLeaseSuspAcct, createContractLine, foundOtherLines, getDefaultTaxCodes, getDefaultTaxExempt, getInvVendorValues, getInvVendorValues, getMRPassedIn, getRecentItemNum, getTaxCodes, isAddLinesOnUse, isValidAssetIfAny, isValidLocationIfAny, isValidMRIfAny, isValidRefWOIfAny, isValidStoreLocIfAny, setConversionFactor, setDefaultOrderPrice, setDefaultValues, setFieldsInitDuplicate, setMRPassedIn, setOrderUnit, setPriceQtyFields, setReceiptTolerance, setRecentItemNum, setUnitCost, validateDeliveryDate
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copyFake, copyValue, copyValue, createComm, 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, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, 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, 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, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copyLeaseSuspAcct, getMRPassedIn, getTaxCodes, isAddLinesOnUse, isValidAssetIfAny, isValidLocationIfAny, isValidMRIfAny, isValidRefWOIfAny, isValidStoreLocIfAny, setConversionFactor, setFieldsInitDuplicate, setMRPassedIn, setOrderUnit, setPriceQtyFields
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copyFake, copyValue, copyValue, createComm, 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, 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, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributes
public PRLine(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public void initFieldFlagsOnMbo(java.lang.String attrName) throws MXException
Mbo
initFieldFlagsOnMbo
in class PurchasingLineMbo
MXException
public void add() throws MXException, java.rmi.RemoteException
Attribute Name | Attribute Value |
---|---|
chargestore | No |
converttorfq | No |
converttocontract | No |
enterby | Current User |
enterdate | Current Date |
inspectionrequired | No |
issue | No |
linecost | 0 (zero) |
linecost2 | 0 (zero) |
loadedcost | 0 (zero) |
linetype | ITEM |
orderqty | 1.0 |
prlinenum | Last PRLineNum + 1 |
prnum | PR.PRNum |
prorateservice | No |
receiptreqd | Yes |
requestedby | Current User |
tax1 - tax5 | 0 (zero) |
unitcost | 0 (zero) |
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXApplicationException
- (pr, cannotDelete) is thrown if the status
of PR is not "WAPPR".MXApplicationException
- (pr, alreadyinPO) is thrown if the PRLine
is already generated a PO.MXApplicationException
- (pr, alreadyinRFQ) is thrown if the PRLine
is already generated an RFQ.MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- the flag for deletionMXException
java.rmi.RemoteException
PurchasingMbo.recalculateTotalCost()
public void undelete() throws MXException, java.rmi.RemoteException
undelete
in interface MboRemote
undelete
in class Mbo
MXApplicationException
- (pr, OwnerMustBePR) is thrown if the owner of
this PRLine is not PR.MXException
java.rmi.RemoteException
PurchasingMbo.recalculateTotalCost()
public void save() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class PurchasingLineMbo
MXApplicationException(po,
- ItemOrDescIsRequired) is thrown when the POLine does not
have either the itemnum or description.MXApplicationException
- (pr, assetwolocglNull) is thrown if the issue flag is true
and none of assetnum, wonum, location or GLDebit have a value.MXApplicationException
- (pr, storeLocNull) is thrown if the issue flag is false
and storeloc is null.MXApplicationException(po,
- AssetNumNull) is thrown when the chargestore flag is true but the PRLine does not have an asset.MXApplicationException(po,
- NoItemForLineType) is thrown when line type is ITEM and does not have an item number associate with it.MXException
java.rmi.RemoteException
public void setNullValuesToPOVariables() throws MXException, java.rmi.RemoteException
setNullValuesToPOVariables
in interface PRLineRemote
MXException
java.rmi.RemoteException
setNullValuesToPOVariables()
public void setNullValuesToContractVariables() throws MXException, java.rmi.RemoteException
setNullValuesToContractVariables
in interface PRLineRemote
MXException
java.rmi.RemoteException
setNullValuesToContractVariables()
public void canDistribute() throws MXException, java.rmi.RemoteException
canDistribute
in interface PRLineRemote
MXException
java.rmi.RemoteException
canDistribute()
public void afterAdd() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void checkPRCostValidity() throws MXException, java.rmi.RemoteException
checkPRCostValidity
in interface PRLineRemote
MXException
java.rmi.RemoteException
checkPRCostValidity()
public MboRemote copy(MboSetRemote mboset) throws MXException, java.rmi.RemoteException
copy
in interface MboRemote
copy
in class PurchasingLineMbo
mboset
- The set into which the new mbo will be added.MXException
java.rmi.RemoteException
Mbo.copy(MboSetRemote, long)
public void propagateKeyValue(java.lang.String keyName, java.lang.String keyValue) throws MXException, java.rmi.RemoteException
propagateKeyValue
in interface MboRemote
propagateKeyValue
in class Mbo
keyName
- Should equal "PRNUM" or else nothing will be propagated.keyValue
- The new value of prnum.MXException
java.rmi.RemoteException
public void setVendorItem(boolean value) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean getVendorItem() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[] getValidateOrder()
getValidateOrder
in class Mbo
public void initRelationship(java.lang.String relationName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
initRelationship
in class Mbo
MXException
java.rmi.RemoteException
public void clearClassification() throws java.rmi.RemoteException, MXException
clearClassification
in interface PRLineRemote
java.rmi.RemoteException
MXException
clearClassification()
public MboSetRemote smartFindByObjectName(java.lang.String sourceObj, java.lang.String targetAttrName, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFindByObjectName
in interface MboRemote
smartFindByObjectName
in class Mbo
MXException
java.rmi.RemoteException
psdi.mbo.Mbo#smartFindByObjectName()