public class InventoryAdjustCmdImpl extends ToolsControllerCommandImpl implements InventoryAdjustCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
An adjustment can be made by marking down quantities in one or more RECEIPT rows (when the adjustment is negative). Or it can be made by adding inventory to an existing RECEIPT row (when the adjustment is positive).
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
InventoryAdjustCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkNumberFormatException()
Checks that the numeric fields are numeric: ffmcenterId invAdjCodeId quantity versionSpcId
|
protected void | checkParametersException()
Checks if the required fields are missing or not in the right data type.
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
protected void | handleSubmitError(ECException e)
Constructs and returns the error message.
|
void | performExecute()
Makes an adjustment to existing inventory by calling the adjustinventory database stored procedure.
|
void | setAdjustmentComment(java.lang.String newAdjustmentComment)
This method sets the comment on the adjustment.
|
void | setCatEntryId(java.lang.String newCatEntryId)
This method sets the item identifier.
|
void | setFfmcenterId(java.lang.String newFfmcenterId)
This method sets the fulfillment center identifier.
|
void | setFlagCheck(java.lang.String newFlagCheck)
Set the flag whether to check inventory
|
void | setFlagUpdate(java.lang.String newFlagUpdate) |
void | setInvAdjCodeId(java.lang.String newInvAdjCodeId)
This method sets the identifier for the adjustment type being made.
|
void | setInvadjustId(java.lang.String newInvadjustId)
Set the inventory adjustment identifier.
|
void | setItemspcId(java.lang.String newItemspcId)
This method sets the item identifier.
|
void | setMemberId(java.lang.String newMemberId)
This method sets the member identifier.
|
void | setPartNumber(java.lang.String newPartNumber)
This method sets the part number.
|
void | setQuantity(java.lang.String newQuantity)
This method sets the quantity to adjust.
|
void | setVersionSpcId(java.lang.String newVersionSpcId)
This method sets the product version identifier of the item.
|
void | validateParameters()
Gets the information about the adjustment to be made and sets the information into the command local variable.
|
public static final java.lang.String COPYRIGHT
public void setAdjustmentComment(java.lang.String newAdjustmentComment)
public void setFfmcenterId(java.lang.String newFfmcenterId)
public void setInvAdjCodeId(java.lang.String newInvAdjCodeId)
public void setInvadjustId(java.lang.String newInvadjustId)
public void setItemspcId(java.lang.String newItemspcId)
public void setFlagUpdate(java.lang.String newFlagUpdate)
public void setFlagCheck(java.lang.String newFlagCheck)
public void setCatEntryId(java.lang.String newCatEntryId)
public void setMemberId(java.lang.String newMemberId)
public void setPartNumber(java.lang.String newPartNumber)
public void setQuantity(java.lang.String newQuantity)
public void setVersionSpcId(java.lang.String newVersionSpcId)
public void validateParameters() throws ECException
StoreId must be set in the command context.
Parameters:
protected void checkParametersException() throws ECApplicationException
Looks for these parameters:
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
If item specified id is null, uses ItemSpecificationAccessBean to get it from the memberId and partnumber. Or uses InventoryJDBCHelperAccessBean().findItemCurrentVersion to get it using the versionSpcId.
protected void checkNumberFormatException() throws ECApplicationException
protected void handleSubmitError(ECException e) throws ECApplicationException