|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.inventory.commands.CreateReceiptCmdImpl
Create a receipt of an item at a fulfillment center.
This command first determines the type of receipt to be created. If the expected inventory record detail identifier is provided, an expected inventory receipt will be created and the receipt type will be set to 'EIR'. If the disposition record identifier of returned item is provided, a return receipt will be created and the receipt type will be set to 'RTN'. Otherwise, an ad hoc receipt will be created and the receipt type will be set to 'ADHC'.
If this is an expected inventory receipt, the quantity received and quantity remaining of the corresponding expected inventory record detail will be updated.
If the receipt is created successfully, the receipt identifier will be returned and the receipt will be made available to the distribution arrangement by calling MakeReceiptAvailableCmd task command.
Field Summary | |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.inventory.commands.CreateReceiptCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
CreateReceiptCmdImpl()
|
Method Summary | |
java.lang.String |
getComment1()
Return comment1 (receipt comment). |
java.lang.String |
getComment2()
Return comment2 (quality comment). |
java.math.BigDecimal |
getCost()
Return unit cost. |
java.lang.Long |
getDistArrangId()
Return distribution arrangement identifier. |
java.lang.Integer |
getFfmcenterId()
Return fulfillment center identifier. |
java.lang.Long |
getItemspcId()
Return item identifier. |
java.lang.Long |
getMemberId()
Return member identifier. |
java.lang.String |
getPartNumber()
Return part number. |
java.lang.Integer |
getQtyReceived()
Return the quantity received. |
java.lang.Long |
getRaDetailId()
Return expected inventory record detail identifier. |
java.lang.Long |
getRcptAvailId()
Return available receipt identifier. |
java.sql.Timestamp |
getReceiptDate()
Return the date the inventory was received. |
java.lang.Long |
getReceiptId()
Return the receipt identifier. |
java.lang.String |
getReceiptType()
Return type of receipt which indicates how this receipt was created. |
java.lang.Long |
getRtnRcptDspId()
Return the disposition record identifier of returned item. |
java.lang.String |
getSetCCurr()
Return currency of the COST field. |
java.lang.Long |
getVendorId()
Return the identifier of the vendor that supplied the inventory. |
java.lang.Long |
getVersionSpcId()
Return the product version identifier of the item. |
boolean |
isReadyToCallExecute()
This command is ready to be executed. |
void |
performExecute()
This method performs the execution of creating a receipt. |
void |
reset()
This method resets the command local variable. |
void |
setComment1(java.lang.String newComment1)
Set comment1 (receipt comment). |
void |
setComment2(java.lang.String newComment2)
Set comment2 (quality comment). |
void |
setCost(java.math.BigDecimal newCost)
Set unit cost. |
void |
setDistArrangId(java.lang.Long newDistArrangId)
Set distribution arrangement identifier. |
void |
setFfmcenterId(java.lang.Integer newFfmcenterId)
Set fulfillment center identifier. |
void |
setItemspcId(java.lang.Long newItemspcId)
Set item identifier. |
void |
setMemberId(java.lang.Long newMemberId)
Set member identifier. |
void |
setPartNumber(java.lang.String newPartNumber)
Set part number. |
void |
setQtyReceived(java.lang.Integer newQtyReceived)
Set the quantity received. |
void |
setRaDetailId(java.lang.Long newRaDetailId)
Set expected inventory record detail identifier. |
void |
setRcptAvailId(java.lang.Long newRcptAvailId)
Set available receipt identifier. |
void |
setReceiptDate(java.sql.Timestamp newReceiptDate)
Set the date the inventory was received. |
void |
setReceiptId(java.lang.Long newReceiptId)
Set the receipt identifier. |
void |
setReceiptType(java.lang.String newReceiptType)
Set type of receipt which indicates how this receipt was created. |
void |
setRequestProperties(TypedProperty newRequestProperties)
Set request properties. |
void |
setRtnRcptDspId(java.lang.Long newRtnRcptDspId)
Set the disposition record identifier of returned item. |
void |
setSetCCurr(java.lang.String newSetCCurr)
Set currency of the COST field. |
void |
setVendorId(java.lang.Long newVendorId)
Set the identifier of the vendor that supplied the inventory. |
void |
setVersionSpcId(java.lang.Long newVersionSpcId)
Set the product version identifier of the item. |
void |
validateParameters()
This method checks the information of receipt to be created. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public CreateReceiptCmdImpl()
Method Detail |
public java.lang.String getComment1()
getComment1
in interface CreateReceiptCmd
public java.lang.String getComment2()
getComment2
in interface CreateReceiptCmd
public java.math.BigDecimal getCost()
getCost
in interface CreateReceiptCmd
public java.lang.Long getDistArrangId()
getDistArrangId
in interface CreateReceiptCmd
public java.lang.Integer getFfmcenterId()
getFfmcenterId
in interface CreateReceiptCmd
public java.lang.Long getItemspcId()
getItemspcId
in interface CreateReceiptCmd
public java.lang.Long getMemberId()
getMemberId
in interface CreateReceiptCmd
public java.lang.String getPartNumber()
getPartNumber
in interface CreateReceiptCmd
public java.lang.Integer getQtyReceived()
getQtyReceived
in interface CreateReceiptCmd
public java.lang.Long getRaDetailId()
getRaDetailId
in interface CreateReceiptCmd
public java.lang.Long getRcptAvailId()
getRcptAvailId
in interface CreateReceiptCmd
public java.sql.Timestamp getReceiptDate()
getReceiptDate
in interface CreateReceiptCmd
public java.lang.Long getReceiptId()
getReceiptId
in interface CreateReceiptCmd
public java.lang.String getReceiptType()
getReceiptType
in interface CreateReceiptCmd
public java.lang.Long getRtnRcptDspId()
getRtnRcptDspId
in interface CreateReceiptCmd
public java.lang.String getSetCCurr()
getSetCCurr
in interface CreateReceiptCmd
public java.lang.Long getVendorId()
getVendorId
in interface CreateReceiptCmd
public java.lang.Long getVersionSpcId()
getVersionSpcId
in interface CreateReceiptCmd
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class AbstractECCommand
com.ibm.commerce.command.AbstractECCommand
public void performExecute() throws ECException
If this is an expected inventory receipt, the quantity received and quantity remaining of the corresponding expected inventory record detail will be updated.
If the receipt is created successfully, the receipt identifier will be returned and the receipt will be made available to the distribution arrangement by calling MakeReceiptAvailableCmd.
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
ECException
- public void reset()
reset
in class AbstractECCommand
public void setComment1(java.lang.String newComment1)
setComment1
in interface CreateReceiptCmd
newComment1
- java.lang.Stringpublic void setComment2(java.lang.String newComment2)
setComment2
in interface CreateReceiptCmd
newComment2
- java.lang.Stringpublic void setCost(java.math.BigDecimal newCost)
setCost
in interface CreateReceiptCmd
newCost
- java.math.BigDecimalpublic void setDistArrangId(java.lang.Long newDistArrangId)
setDistArrangId
in interface CreateReceiptCmd
newDistArrangId
- java.lang.Longpublic void setFfmcenterId(java.lang.Integer newFfmcenterId)
setFfmcenterId
in interface CreateReceiptCmd
newFfmcenterId
- java.lang.Integerpublic void setItemspcId(java.lang.Long newItemspcId)
setItemspcId
in interface CreateReceiptCmd
newItemspcId
- java.lang.Longpublic void setMemberId(java.lang.Long newMemberId)
setMemberId
in interface CreateReceiptCmd
newMemberId
- java.lang.Longpublic void setPartNumber(java.lang.String newPartNumber)
setPartNumber
in interface CreateReceiptCmd
newPartNumber
- java.lang.Stringpublic void setQtyReceived(java.lang.Integer newQtyReceived)
setQtyReceived
in interface CreateReceiptCmd
newQtyReceived
- java.lang.Integerpublic void setRaDetailId(java.lang.Long newRaDetailId)
setRaDetailId
in interface CreateReceiptCmd
newRaDetailId
- java.lang.Longpublic void setRcptAvailId(java.lang.Long newRcptAvailId)
setRcptAvailId
in interface CreateReceiptCmd
newRcptAvailId
- java.lang.Longpublic void setReceiptDate(java.sql.Timestamp newReceiptDate)
setReceiptDate
in interface CreateReceiptCmd
newReceiptDate
- java.sql.Timestamppublic void setReceiptId(java.lang.Long newReceiptId)
setReceiptId
in interface CreateReceiptCmd
newReceiptId
- java.lang.Longpublic void setReceiptType(java.lang.String newReceiptType)
setReceiptType
in interface CreateReceiptCmd
newReceiptType
- java.lang.Stringpublic void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
setRequestProperties
in interface CreateReceiptCmd
reqParms
- com.ibm.commerce.datatype.TypedPropertypublic void setRtnRcptDspId(java.lang.Long newRtnRcptDspId)
setRtnRcptDspId
in interface CreateReceiptCmd
newRtnRcptDspId
- java.lang.Longpublic void setSetCCurr(java.lang.String newSetCCurr)
setSetCCurr
in interface CreateReceiptCmd
newSetCCurr
- java.lang.Stringpublic void setVendorId(java.lang.Long newVendorId)
setVendorId
in interface CreateReceiptCmd
newVendorId
- java.lang.Longpublic void setVersionSpcId(java.lang.Long newVersionSpcId)
setVersionSpcId
in interface CreateReceiptCmd
newVersionSpcId
- java.lang.Longpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
com.ibm.commerce.exception.ECApplicationException.
- If mandatory
parameters are not passed in, throw ECApplicationException.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |