public interface ReceiptCreateCmd extends ToolsControllerCommand
This controller command will call CreateReceiptCmd
to create the receipt and insert a
new row in itemffmctr table for this item, store and fulfillment center. This is done if row
does not yet exist when a receipt is created. This row will be used to record
information about reserved quantities, amount on backorder. It is also used to record amount allocated
to backorders for this item owned by this store at this fulfillment center.
This command requires to have the store id set in the command context.
Parameters
Example xml_string for expected inventory receipt:
<?xml version="1.0" encoding="UTF-8"?> <XML> <XMLFile>inventory.POReceiveInventoryDialog</XMLFile> <comment1>Receipt comment</comment1> <comment2>Quality comment</comment2> <cost>24.5</cost> <ffmcenterId>300</ffmcenterId> <qtyReceived>230</qtyReceived> <raDetailId>10001</raDetailId> <receiptDate>2001-10-23 00:00:00.0</receiptDate> <setCCurr>CAD</setCCurr> <vendorId>200</vendorId> </XML>
Example xml_string for ad hoc receipt:
<?xml version="1.0" encoding="UTF-8"?> <XML> <XMLFile>inventory.POReceiveInventoryDialog</XMLFile> <comment1>Receipt comment</comment1> <comment2>Quality comment</comment2> <cost>24.5</cost> <setCCurr>CAD</setCCurr> <ffmcenterId>300</ffmcenterId> <itemspcId>400</itemspcId> <qtyReceived>230</qtyReceived> <receiptDate>2001-10-23 00:00:00.0</receiptDate> <setCCurr>CAD</setCCurr> <vendorId>200</vendorId> </XML>
Response 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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
static java.lang.String |
defaultCommandClassName
The default implementation class name is
"com.ibm.commerce.inventory.commands.ReceiptCreateCmdImpl".
|
static java.lang.String |
NAME
The name of this interface is "com.ibm.commerce.inventory.commands.ReceiptCreateCmd".
|
Modifier and Type | Method and Description |
---|---|
void |
setComment1(java.lang.String newComment1)
Sets comment1 (receipt comment).
|
void |
setComment2(java.lang.String newComment2)
Sets comment2 (quality comment).
|
void |
setCost(java.lang.String newCost)
Sets unit cost.
|
void |
setDistArrangId(java.lang.String newDistArrangId)
Sets distribution arrangement identifier.
|
void |
setFfmcenterId(java.lang.String newFfmcenterId)
Sets fulfillment center identifier.
|
void |
setItemspcId(java.lang.String newItemspcId)
Sets item identifier.
|
void |
setMemberId(java.lang.String newMemberId)
Sets member identifier.
|
void |
setPartNumber(java.lang.String newPartNumber)
Sets the part number.
|
void |
setQtyReceived(java.lang.String newQtyReceived)
Sets the quantity received.
|
void |
setRaDetailId(java.lang.String newRaDetailId)
Sets expected inventory record detail identifier.
|
void |
setRcptAvailId(java.lang.String newRcptAvailId)
Sets available receipt identifier.
|
void |
setReceiptDate(java.lang.String newReceiptDate)
Sets the date the inventory was received.
|
void |
setReceiptId(java.lang.String newReceiptId)
Sets the receipt identifier.
|
void |
setReceiptType(java.lang.String newReceiptType)
Sets type of receipt which indicates how this receipt was created.
|
void |
setRtnRcptDspId(java.lang.String newRtnRcptDspId)
Sets the disposition record identifier of returned item.
|
void |
setSetCCurr(java.lang.String newSetCCurr)
Sets currency of the
COST field. |
void |
setVendorId(java.lang.String newVendorId)
Sets the identifier of the vendor that supplied the inventory.
|
void |
setVersionSpcId(java.lang.String newVersionSpcId)
Sets the product version identifier of the item.
|
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
void setComment1(java.lang.String newComment1)
newComment1
- commentvoid setComment2(java.lang.String newComment2)
newComment2
- commentvoid setCost(java.lang.String newCost)
newCost
- unit costvoid setDistArrangId(java.lang.String newDistArrangId)
newDistArrangId
- distribution arrangement identifiervoid setFfmcenterId(java.lang.String newFfmcenterId)
newFfmcenterId
- fulfillment center identifiervoid setItemspcId(java.lang.String newItemspcId)
newItemspcId
- item identifiervoid setMemberId(java.lang.String newMemberId)
newMemberId
- owner identifiervoid setPartNumber(java.lang.String newPartNumber)
newPartNumber
- part numbervoid setQtyReceived(java.lang.String newQtyReceived)
newQtyReceived
- quantity receivedvoid setRaDetailId(java.lang.String newRaDetailId)
newRaDetailId
- record detail identifiervoid setRcptAvailId(java.lang.String newRcptAvailId)
newRcptAvailId
- available receipt identifiervoid setReceiptDate(java.lang.String newReceiptDate)
newReceiptDate
- date inventory was receivedvoid setReceiptId(java.lang.String newReceiptId)
newReceiptId
- receipt identifiervoid setReceiptType(java.lang.String newReceiptType)
newReceiptType
- receipt typevoid setRtnRcptDspId(java.lang.String newRtnRcptDspId)
newRtnRcptDspId
- return receipt disposition identifiervoid setSetCCurr(java.lang.String newSetCCurr)
COST
field.newSetCCurr
- currencyvoid setVendorId(java.lang.String newVendorId)
newVendorId
- vendor identifiervoid setVersionSpcId(java.lang.String newVersionSpcId)
newVersionSpcId
- version identifier