public class MakeReceiptAvailableCmdImpl extends TaskCommandImpl implements MakeReceiptAvailableCmd
Uses the following access beans:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
MakeReceiptAvailableCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long | getDistArrangId()
Returns distribution arrangement identifier.
|
java.lang.Long | getItemspcId()
Return item identifier.
|
java.lang.Long | getRcptAvailId()
Return available receipt identifier.
|
java.lang.Long | getReceiptId()
Return the receipt identifier.
|
boolean | isReadyToCallExecute()
Identifies whether this command is ready to be executed.
|
void | performExecute()
Makes a receipt available to the distribution arrangement.
|
void | reset()
Resets the command local variable.
|
void | setDistArrangId(java.lang.Long newDistArrangId)
Set distribution arrangement identifier.
|
void | setItemspcId(java.lang.Long newItemspcId)
Set item identifier.
|
void | setRcptAvailId(java.lang.Long newRcptAvailId)
Set available receipt identifier.
|
void | setReceiptId(java.lang.Long newReceiptId)
Set the receipt identifier.
|
void | setRequestProperties(TypedProperty newRequestProperties)
Set request properties.
|
void | validateParameters()
Checks the information needed for making a receipt available.
|
public static final java.lang.String COPYRIGHT
public java.lang.Long getDistArrangId()
public java.lang.Long getItemspcId()
public java.lang.Long getRcptAvailId()
public java.lang.Long getReceiptId()
public void setDistArrangId(java.lang.Long newDistArrangId)
public void setItemspcId(java.lang.Long newItemspcId)
public void setRcptAvailId(java.lang.Long newRcptAvailId)
public void setReceiptId(java.lang.Long newReceiptId)
public void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
public boolean isReadyToCallExecute()
public void validateParameters() throws ECException
Parameters:
public void performExecute() throws ECException
This is done by inserting a row into RCPTAVAIL table associating the receipt with the distribution arrangement.
The distribution arrangement will have a picking method of either LIFO or FIFO. If the picking method of the distribution arrangement is FIFO, the precedence of the rcptavail row will be MAX(precedence)+1. If the picking method of the distribution arrangement is LIFO, the precedence of the rcptavail row will be MIN(precedence)-1. If there are no rows in the rcptavail table, the precedence of the rcptavail row will be 1.
If distribution arrangement parameter is null, uses ItemSpecificationAccessBean and DistributionArrangementAccessBean to retrieve the base item id from the item specified id. Or if there is still no distribution arrangement, create one. This behavior allows a store to always allocate from inventory that it owns.
Uses InventoryJDBCHelperAccessBean().findAvailableReceiptMaxAndMinPrecedence to get the next precedence to use for new RCPTAVAIL row. Uses AvailableReceiptAccessBean to create and populate the row.
public void reset()