public class ManageInventoryCmdImpl extends TaskCommandImpl implements ManageInventoryCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
ManageInventoryCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | adjustInventory()
Adjust inventory, for atp it will call Stored procedure AdjustInventory For non-ATP, it will call task command AdjustInventoryCmd
|
protected void | checkNumberFormatException()
Checks that the numeric fields are numeric: ffmcenterId invAdjCodeId quantity versionSpcId
|
protected void | createInventory()
Create inventory, for ATP, it will create an adhoc receipt, and make this receipt available.
|
protected void | doMoreAction()
For those actions beyond our identified usage, this method could be used to customize the new usage
|
java.lang.String | getCatEntryId() |
java.lang.String | getComment1()
Gets the comment specified on the new receipt.
|
java.lang.String | getComment2()
Gets the comment specified regarding the quality of the item received.
|
java.lang.String | getCost()
Gets the unit cost of the item.
|
java.lang.String | getDistArrangId()
Gets the identifier of the distribution arrangement that has access to this received inventory.
|
java.lang.String | getFfmcenterId()
Gets the identifier of the fulfillment center where the inventory was received.
|
java.lang.String | getItemspcId()
Gets the identifier of the item specified for receipt.
|
java.lang.String | getMemberId()
Gets the identifier of the owner of the received item.
|
java.lang.String | getPartNumber()
Gets the part number of the received item.
|
java.lang.String | getQtyReceived()
Gets the number of items received.
|
java.lang.String | getRaDetailId()
Gets the expected inventory record detail identifier for the expected inventory receipt.
|
java.lang.String | getRcptAvailId()
Gets the available receipt identifier.
|
java.lang.String | getReceiptDate()
Gets the date the inventory was received.
|
java.lang.String | getReceiptId()
Gets the identifier of the new receipt.
|
java.lang.String | getReceiptType()
Gets the type of receipt which indicates how this receipt was created.
|
java.lang.String | getRtnRcptDspId()
Gets the disposition record identifier of the item returned for receipt.
|
java.lang.String | getSetCCurr()
Gets the currency of the cost field.
|
java.lang.String | getVendorId()
Gets the identifier of the vendor that supplied the inventory.
|
java.lang.String | getVersionSpcId()
Gets the product version identifier of the item returned for receipt.
|
boolean | isReadyToCallExecute()
Ready to be executed.
|
void | performExecute()
This command is used to manage inventory in accelerator, currently, there are two actions, one is create inventory and another is adjust inventory
|
void | reset()
Resets the command local variable.
|
void | setAction(int action)
Specify the action to fulfill
|
void | setAdjustmentComment(java.lang.String newAdjustmentComment) |
void | setCatEntryId(java.lang.String catEntryId)
Sets the identifier of the item specified for receipt.
|
void | setComment1(java.lang.String newComment1)
Sets the comment on the new receipt.
|
void | setComment2(java.lang.String newComment2)
Sets the comment regarding the quality of the item received.
|
void | setCost(java.lang.String newCost)
Sets the unit cost of the item being received.
|
void | setDistArrangId(java.lang.String newDistArrangId)
Sets the identifier of the distribution arrangement that has access to this received inventory.
|
void | setFfmcenterId(java.lang.String newFfmcenterId)
Sets the fulfillment center identifier.
|
void | setFlagCheck(java.lang.String newFlagCheck)
This method sets the flag for when updateInventory whether to check quantity
|
void | setFlagUpdate(java.lang.String newFlagUpdate)
This method sets the flag for when updateInventory/checkInventory whether to update quantity
|
void | setInvAdjCodeId(java.lang.String newInvAdjCodeId)
Sets the identifier for the adjustment type being made.
|
void | setInvadjustId(java.lang.String newInvadjustId)
This method sets the inventory adjustment identifier.
|
void | setItemspcId(java.lang.String newItemspcId)
Sets the identifier of the item specified for receipt.
|
void | setMemberId(java.lang.String newMemberId)
Sets the identifier of the owner of the item specified for receipt.
|
void | setPartNumber(java.lang.String newPartNumber)
Sets the part number of the items being received.
|
void | setQtyReceived(java.lang.String newQtyReceived)
Sets the number of items being received.
|
void | setRaDetailId(java.lang.String newRaDetailId)
Sets the identifier of the record detail of the expected inventory.
|
void | setRcptAvailId(java.lang.String newRcptAvailId)
Sets the identifier of the available receipt.
|
void | setReceiptDate(java.lang.String newReceiptDate)
Sets the date the inventory was received.
|
void | setReceiptId(java.lang.String newReceiptId)
Sets identifier of the new receipt.
|
void | setReceiptType(java.lang.String newReceiptType)
Sets the type of receipt which indicates how this receipt was created.
|
void | setRtnRcptDspId(java.lang.String newRtnRcptDspId)
Sets the disposition record identifier of the returned item.
|
void | setSetCCurr(java.lang.String newSetCCurr)
Sets the 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 specified for receipt.
|
void | validateParameters()
Checks the information of the receipt to be created.
|
public static final java.lang.String COPYRIGHT
public void setAdjustmentComment(java.lang.String newAdjustmentComment)
public void setInvAdjCodeId(java.lang.String newInvAdjCodeId)
public java.lang.String getCatEntryId()
public void setCatEntryId(java.lang.String catEntryId)
public void setFlagCheck(java.lang.String newFlagCheck)
public void setFlagUpdate(java.lang.String newFlagUpdate)
public void setInvadjustId(java.lang.String newInvadjustId)
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 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 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 boolean isReadyToCallExecute()
public void validateParameters() throws ECException
Checks the information of the receipt to be created. Make sure all the required parameters were passed in, or collected from somewhere. Fields required to be set beforehand
public void setAction(int action)
public void reset()
protected void checkNumberFormatException() throws ECApplicationException
public void performExecute() throws ECException
protected void doMoreAction()
protected void adjustInventory() throws ECException
protected void createInventory() throws ECException