public class AdjustInventoryCmdImpl extends TaskCommandImpl implements AdjustInventoryCmd
This command will create inventory with specified catEntryId,fulfillmentCenterId,quantity
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
AdjustInventoryCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Double | convertQuantity(java.lang.Double dQuantity, java.lang.String quantityUnit, java.lang.String newQuantityUnit)
Convert quantity from one quantity to the new quantity
|
protected java.lang.Double | convertQuantity(java.lang.Long catEntryId, java.lang.Double dQuantity, java.lang.String newQuantityUnit)
This method converts quantity to use new quantityUnit.
|
java.lang.Long | getCatEntryId()
This method returns the catEntryId
|
java.lang.String | getQuantity()
This method returns the quantity
|
java.lang.String | getQuantityMeasure()
This method returns the quantity
|
boolean | isReadyToCallExecute()
Ready to be executed.
|
void | performExecute()
This method performs the execution of creating an inventory.
|
void | reset()
Resets the command local variable.
|
void | setCatEntryId(java.lang.Long catEntry_id)
This method sets the catEntry parameters to check inventory It is optional if order item is set
|
void | setFlagCheck(java.lang.String newFlag)
This method sets flagCheck
|
void | setFlagUpdate(java.lang.String newFlag)
This method sets flagUpdate
|
void | setFulfillmentCenterId(java.lang.Integer fulfillmentCenter_id)
This method sets the fulfillmentCenter parameters to check inventory on It is optional if order item is set
|
void | setQuantity(java.lang.String newQuantity)
This method sets the quantity to the new created inventory
|
void | setQuantityMeasure(java.lang.String newQuantityMeasure)
This method sets the quantity measure
|
void | setStoreId(java.lang.Integer storeId)
This method sets a store id to check the inventory.
|
void | validateParameters()
Checks the information of the receipt to be created.
|
public static final java.lang.String COPYRIGHT
public void setCatEntryId(java.lang.Long catEntry_id)
public void setQuantity(java.lang.String newQuantity)
public java.lang.Long getCatEntryId()
public java.lang.String getQuantity()
public void setQuantityMeasure(java.lang.String newQuantityMeasure)
public java.lang.String getQuantityMeasure()
public void setFulfillmentCenterId(java.lang.Integer fulfillmentCenter_id)
public void setStoreId(java.lang.Integer storeId)
public void setFlagCheck(java.lang.String newFlag)
public void setFlagUpdate(java.lang.String newFlag)
public void reset()
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 performExecute() throws ECException
If the receipt is created successfully, the inventory identifier will be returned
Utilizes the following beans
protected java.lang.Double convertQuantity(java.lang.Double dQuantity, java.lang.String quantityUnit, java.lang.String newQuantityUnit) throws ECException
protected java.lang.Double convertQuantity(java.lang.Long catEntryId, java.lang.Double dQuantity, java.lang.String newQuantityUnit) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException, javax.ejb.FinderException, ECException