public class ReceiptCreateCmdImpl extends ToolsControllerCommandImpl implements ReceiptCreateCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
This controller command calls the CreateReceiptCmd task command. If a redirect URL is not provided, ReceiptCreateRedirectView will be called upon successful completion, and ReceiptCreateErrorView upon failure.
Uses the StoreEntityAccessBean and ItemFulfillmentCenterAccessBean.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
ReceiptCreateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkIllegalArgumentException()
Verifies that the receipt date is in timestamp format.
|
protected void | checkNumberFormatException()
Verifies that the numeric fields are numeric.
|
protected void | checkParametersException()
Checks the information of the receipt to be created.
|
void | createItemffmctr(java.lang.Long itemspcId)
Adds a new row in itemffmctr table for this item, store and fulfillment center if row does not yet exist when the receipt is created.
|
java.lang.String | getCatEntryId()
Return catEntryId.
|
java.lang.String | getComment1()
Returns comment1 (receipt comment).
|
java.lang.String | getComment2()
Returns comment2 (quality comment).
|
java.lang.String | getCost()
Returns unit cost.
|
java.lang.String | getDistArrangId()
Returns distribution arrangement identifier.
|
java.lang.String | getFfmcenterId()
Return fulfillment center identifier.
|
java.lang.String | getFlagCheck()
Returns flagCheck (receipt comment).
|
java.lang.String | getFlagUpdate()
Returns flagUpdate(receipt comment).
|
java.lang.String | getItemspcId()
Return item identifier.
|
java.lang.String | getMemberId()
Return member identifier of the organization which owns the store.
|
java.lang.String | getPartNumber()
Return part number.
|
java.lang.String | getQtyReceived()
Return the quantity received.
|
java.lang.String | getRaDetailId()
Return expected inventory record detail identifier.
|
java.lang.String | getRcptAvailId()
Return the available receipt identifier.
|
java.lang.String | getReceiptDate()
Return the inventory receipt date.
|
java.lang.String | getReceiptId()
Return the receipt identifier.
|
java.lang.String | getReceiptType()
Return type of receipt which indicates how this receipt was created.
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
java.lang.String | getRtnRcptDspId()
Return the disposition record identifier of the returned item.
|
java.lang.String | getSetCCurr()
Return currency of the COST field.
|
java.lang.String | getVendorId()
Return the identifier of the vendor that supplied the inventory.
|
java.lang.String | getVersionSpcId()
Return the product version identifier of the specified item received.
|
protected void | handleSubmitError(ECException e)
Constructs and returns the error message.
|
void | performExecute()
Performs the execution of creating a receipt by calling CreateReceiptCmd.
|
void | setCatEntryId(java.lang.String newCatEntryId) |
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 | setFlagCheck(java.lang.String newFlag) |
void | setFlagUpdate(java.lang.String newFlag) |
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.
|
void | validateParameters()
Gets the information of receipt to be created and sets the information into the command local variable.
|
public static final java.lang.String COPYRIGHT
public void setFlagCheck(java.lang.String newFlag)
public void setFlagUpdate(java.lang.String newFlag)
public java.lang.String getFlagCheck()
public java.lang.String getFlagUpdate()
public java.lang.String getComment1()
public java.lang.String getComment2()
public java.lang.String getCost()
public java.lang.String getDistArrangId()
public java.lang.String getFfmcenterId()
public java.lang.String getCatEntryId()
public java.lang.String getItemspcId()
public java.lang.String getMemberId()
public java.lang.String getPartNumber()
public java.lang.String getQtyReceived()
public java.lang.String getRaDetailId()
public java.lang.String getRcptAvailId()
public java.lang.String getReceiptDate()
public java.lang.String getReceiptId()
public java.lang.String getReceiptType()
public java.lang.String getRtnRcptDspId()
public java.lang.String getSetCCurr()
public java.lang.String getVendorId()
public java.lang.String getVersionSpcId()
public void setComment1(java.lang.String newComment1)
public void setComment2(java.lang.String newComment2)
public void setCost(java.lang.String newCost)
public void setDistArrangId(java.lang.String newDistArrangId)
public void setFfmcenterId(java.lang.String newFfmcenterId)
public void setItemspcId(java.lang.String newItemspcId)
public void setCatEntryId(java.lang.String newCatEntryId)
public void setMemberId(java.lang.String newMemberId)
public void setPartNumber(java.lang.String newPartNumber)
public void setQtyReceived(java.lang.String newQtyReceived)
public void setRaDetailId(java.lang.String newRaDetailId)
public void setRcptAvailId(java.lang.String newRcptAvailId)
public void setReceiptDate(java.lang.String newReceiptDate)
public void setReceiptId(java.lang.String newReceiptId)
public void setReceiptType(java.lang.String newReceiptType)
public void setRtnRcptDspId(java.lang.String newRtnRcptDspId)
public void setSetCCurr(java.lang.String newSetCCurr)
public void setVendorId(java.lang.String newVendorId)
public void setVersionSpcId(java.lang.String newVersionSpcId)
public void validateParameters() throws ECException
protected void checkParametersException() throws ECApplicationException
Checks the information of the receipt to be created. Make sure all the required parameters were passed in, or collected from somewhere. Required fields:
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
protected void checkNumberFormatException() throws ECApplicationException
protected void checkIllegalArgumentException() throws ECApplicationException
public void createItemffmctr(java.lang.Long itemspcId) throws ECException
protected void handleSubmitError(ECException e) throws ECApplicationException