|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.inventory.commands.GeneratePickBatchCmdImpl
Generate a pick batch for specified fulfillment center and store.
The order releases with 'SHIP' status for the specified fulfillment center and store will be included in the pick batch generation. If there are more than the maximum number of eligible order releases when a pick batch is generated, only the maximum number of order releases are picked up in this pick batch and the rest will be picked up by the next pick batch generation. A pack slip XML will be generated for each eligible order release and a pick ticket XML will be generated for the whole batch. An invoice XML may also be generated for each eligible order release.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.inventory.commands.GeneratePickBatchCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
GeneratePickBatchCmdImpl()
|
Method Summary | |
java.lang.String |
generatePackslip(java.lang.String pickBatchId,
java.lang.String store_name,
java.lang.String ffmcenter_name,
java.lang.String order_number,
java.lang.String release_number,
java.lang.String customer_number,
java.lang.String order_date)
This method performs the generation of pack slip XML for an order release. |
void |
generatePickbatch(int maxOrderReleases)
This method performs the generation of pick batch if there are any eligible order releases. |
java.lang.String |
generatePickticket(java.lang.String pickBatchId,
java.lang.String store_name,
java.lang.String ffmcenter_name)
This method performs the generation of pick ticket XML the whole batch. |
java.lang.Integer |
getFfmcenterId()
Return fulfillment center identifier. |
java.lang.Integer |
getLanguageId()
Return language identifier. |
int |
getMaxOrdReleasesPerPickbatch()
Return the moreOrderReleases flag to indicate if there are more eligible order releases not included in this pick batch. |
java.lang.String |
getMoreOrderReleases()
Return the flag to indicate if there are more eligible order releases not included in this pick batch. |
java.lang.Long |
getPickBatchId()
Return the pick batch identifier. |
java.lang.Integer |
getStoreentId()
Return the store entity identidier. |
boolean |
isReadyToCallExecute()
This command is ready to be executed. |
void |
performExecute()
This method performs the generation of pick batch by calling generatePickBatch() method. |
void |
reset()
This method resets the command local variable. |
void |
setFfmcenterId(java.lang.Integer newFfmcenterId)
Set fulfillment center identifier. |
void |
setLanguageId(java.lang.Integer newLanguageId)
Set language identifier. |
void |
setMaxOrdReleasesPerPickbatch(int newMaxOrdReleasesPerPickbatch)
Set the maximum number of order releases included in a pick batch. |
void |
setMoreOrderReleases(java.lang.String newMoreOrderReleases)
Set the moreOrderReleases flag to indicate if there are more eligible order releases not included in this pick batch. |
void |
setPickBatchId(java.lang.Long newPickBatchId)
Set the pick batch identifier. |
void |
setRequestProperties(TypedProperty newRequestProperties)
Set request properties. |
void |
setStoreentId(java.lang.Integer newStoreentId)
Set the store entity identifier. |
void |
validateParameters()
This method checks the information needed for pick batch generation. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public GeneratePickBatchCmdImpl()
Method Detail |
public java.lang.String generatePackslip(java.lang.String pickBatchId, java.lang.String store_name, java.lang.String ffmcenter_name, java.lang.String order_number, java.lang.String release_number, java.lang.String customer_number, java.lang.String order_date) throws ECException
ECException
- public void generatePickbatch(int maxOrderReleases) throws ECException
ECException
- public java.lang.String generatePickticket(java.lang.String pickBatchId, java.lang.String store_name, java.lang.String ffmcenter_name) throws ECException
ECException
- public java.lang.Integer getFfmcenterId()
getFfmcenterId
in interface GeneratePickBatchCmd
public java.lang.Integer getLanguageId()
getLanguageId
in interface GeneratePickBatchCmd
public int getMaxOrdReleasesPerPickbatch()
getMaxOrdReleasesPerPickbatch
in interface GeneratePickBatchCmd
public java.lang.String getMoreOrderReleases()
getMoreOrderReleases
in interface GeneratePickBatchCmd
public java.lang.Long getPickBatchId()
getPickBatchId
in interface GeneratePickBatchCmd
public java.lang.Integer getStoreentId()
getStoreentId
in interface GeneratePickBatchCmd
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class AbstractECCommand
com.ibm.commerce.command.AbstractECCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
ECException
- public void reset()
reset
in class AbstractECCommand
public void setFfmcenterId(java.lang.Integer newFfmcenterId)
setFfmcenterId
in interface GeneratePickBatchCmd
newFfmcenterId
- java.lang.Integerpublic void setLanguageId(java.lang.Integer newLanguageId)
setLanguageId
in interface GeneratePickBatchCmd
newLanguageId
- java.lang.Integerpublic void setMaxOrdReleasesPerPickbatch(int newMaxOrdReleasesPerPickbatch)
setMaxOrdReleasesPerPickbatch
in interface GeneratePickBatchCmd
newMaxOrdReleasesPerPickbatch
- intpublic void setMoreOrderReleases(java.lang.String newMoreOrderReleases)
setMoreOrderReleases
in interface GeneratePickBatchCmd
newMoreOrderReleases
- java.lang.Stringpublic void setPickBatchId(java.lang.Long newPickBatchId)
setPickBatchId
in interface GeneratePickBatchCmd
newPickBatchId
- java.lang.Longpublic void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
setRequestProperties
in interface GeneratePickBatchCmd
reqParms
- com.ibm.commerce.datatype.TypedPropertypublic void setStoreentId(java.lang.Integer newStoreentId)
setStoreentId
in interface GeneratePickBatchCmd
newStoreentId
- java.lang.Integerpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
com.ibm.commerce.exception.ECApplicationException.
- If mandatory
parameters are not passed in, throw ECApplicationException.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |