public class AdjustReceiptCmdImpl extends TaskCommandImpl implements AdjustReceiptCmd, 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). Adjustment can also 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 |
---|
AdjustReceiptCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkNumberFormatException()
Checks that the numeric fields are numeric: ffmcenterId invAdjCodeId quantity versionSpcId
|
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)
Sets the comment on the adjustment.
|
void | setFfmcenterId(java.lang.String newFfmcenterId)
Sets the fulfillment center identifier.
|
void | setInvAdjCodeId(java.lang.String newInvAdjCodeId)
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)
Sets the item identifier.
|
void | setMemberId(java.lang.String newMemberId)
Sets the member identifier.
|
void | setPartNumber(java.lang.String newPartNumber)
Sets the part number.
|
void | setQuantity(java.lang.String newQuantity)
Sets the quantity to adjust.
|
void | setVersionSpcId(java.lang.String newVersionSpcId)
Sets the product version identifier of the item.
|
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 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)
protected void checkNumberFormatException() throws ECApplicationException
protected void handleSubmitError(ECException e) throws ECApplicationException
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.