public class ResolveReleasesCmdImpl extends TaskCommandImpl implements ResolveReleasesCmd
This command first retrieves all the NEW releases for a given order.
If there is an item in each release "tied" with tieship code. Then it will try to resolve it for being tied to future order, backorder, and to be ready among releases.
The resolved releases will be moved from NEW to RDY on ordreleases.status returned a list of newly resolved releases via getResolvedOrderReleases()
This command requires to have the order id set in the command context. Required parameters are listed in the validateParameters() method.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
protected static java.lang.String | INSTANCE_NAME
label
|
static java.lang.String | ORDRELEASE_RDY
ORDRELEASE table constants
|
Constructor and Description |
---|
ResolveReleasesCmdImpl() |
Modifier and Type | Method and Description |
---|---|
static ResolveReleasesCmd | getInstance(CommandContext aCommandContext)
Returns the instance from the command context.
|
OrderAccessBean | getOrder()
This method returns the order being worked on.
|
java.util.Enumeration | getResolvedReleases()
This method retrieves all resolved releases after execution.
|
boolean | isReadyToCallExecute()
Ready to be executed.
|
void | performExecute()
Performs the execution of resolving releases.
|
void | reset()
Resets the command local variable.
|
void | setOrder(OrderAccessBean abOrder)
set an Order to work on
|
void | setOrderReleases(OrderReleaseAccessBean[] orderReleases)
setOrderReleases
|
void | setRequestProperties(TypedProperty newRequestProperties)
Sets the information into the command local variable.
|
void | validateParameters()
Checks the information of the command Make sure all the required parameters were passed in, or collected from somewhere.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ORDRELEASE_RDY
protected static final java.lang.String INSTANCE_NAME
public static ResolveReleasesCmd getInstance(CommandContext aCommandContext) throws ECException
public void setOrder(OrderAccessBean abOrder)
public OrderAccessBean getOrder()
public java.util.Enumeration getResolvedReleases()
public void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
public boolean isReadyToCallExecute()
public void validateParameters() throws ECException
Checks the information of the command Make sure all the required parameters were passed in, or collected from somewhere. Fields required to be set beforehand
public void performExecute() throws ECException
If this is an expected inventory receipt, the quantity received and quantity remaining of the corresponding expected inventory record detail will be updated.
If the receipt is created successfully, the receipt identifier will be returned and the receipt will be made available to the distribution arrangement by calling MakeReceiptAvailableCmd.
Utilizes the following beans
public void reset()
public void setOrderReleases(OrderReleaseAccessBean[] orderReleases)