|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
This command requires to have the store id set in the command context.
Input Parameters
Output Parameters
Exceptions
When the required fields are missing or not in the right data type, this command will throw exception to indicate which field is missing or bad.
Field Summary | |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
static java.lang.String |
defaultCommandClassName
The default implementation class is "com.ibm.commerce.inventory.commands.CreateReceiptCmdImpl". |
static java.lang.String |
NAME
The name of this interface is "com.ibm.commerce.inventory.commands.CreateReceiptCmd". |
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. |
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. |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String defaultCommandClassName
public static final java.lang.String NAME
Method Detail |
public java.lang.String getComment1()
public java.lang.String getComment2()
public java.math.BigDecimal getCost()
public java.lang.Long getDistArrangId()
public java.lang.Integer getFfmcenterId()
public java.lang.Long getItemspcId()
public java.lang.Long getMemberId()
public java.lang.String getPartNumber()
public java.lang.Integer getQtyReceived()
public java.lang.Long getRaDetailId()
public java.lang.Long getRcptAvailId()
public java.sql.Timestamp getReceiptDate()
public java.lang.Long getReceiptId()
public java.lang.String getReceiptType()
public java.lang.Long getRtnRcptDspId()
public java.lang.String getSetCCurr()
public java.lang.Long getVendorId()
public java.lang.Long getVersionSpcId()
public void setComment1(java.lang.String newComment1)
newComment1
- java.lang.Stringpublic void setComment2(java.lang.String newComment2)
newComment2
- java.lang.Stringpublic void setCost(java.math.BigDecimal newCost)
newCost
- java.lang.Stringpublic void setDistArrangId(java.lang.Long newDistArrangId)
newDistArrangId
- java.lang.Longpublic void setFfmcenterId(java.lang.Integer newFfmcenterId)
newFfmcenterId
- java.lang.Integerpublic void setItemspcId(java.lang.Long newItemspcId)
newItemspcId
- java.lang.Longpublic void setMemberId(java.lang.Long newMemberId)
newMemberId
- java.lang.Longpublic void setPartNumber(java.lang.String newPartNumber)
newPartNumber
- java.lang.Stringpublic void setQtyReceived(java.lang.Integer newQtyReceived)
newQtyReceived
- java.lang.Integerpublic void setRaDetailId(java.lang.Long newRaDetailId)
newRaDetailId
- java.lang.Integerpublic void setRcptAvailId(java.lang.Long newRcptAvailId)
newRcptAvailId
- java.lang.Longpublic void setReceiptDate(java.sql.Timestamp newReceiptDate)
newReceiptDate
- java.sql.Timestamppublic void setReceiptId(java.lang.Long newReceiptId)
newReceiptId
- java.lang.Longpublic void setReceiptType(java.lang.String newReceiptType)
newReceiptType
- java.lang.Stringpublic void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
reqParms
- com.ibm.commerce.datatype.TypedPropertypublic void setRtnRcptDspId(java.lang.Long newRtnRcptDspId)
newRtnRcptDspId
- java.lang.Longpublic void setSetCCurr(java.lang.String newSetCCurr)
newSetCCurr
- java.lang.Stringpublic void setVendorId(java.lang.Long newVendorId)
newVendorId
- java.lang.Longpublic void setVersionSpcId(java.lang.Long newVersionSpcId)
newVersionSpcId
- java.lang.Long
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |