|
||||||||
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.returns.commands.ReturnItemToInventoryCmdImpl
Command used to return merchandise to pool of inventory which can be used for new inventory allocations. If a new receipt must be created because of the trackable status of the item, it is done by calling CreateReceiptCmd. The values required by CreateReceiptCmd are calculated within this command.
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands.ReturnItemToInventoryCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Constructor Summary | |
ReturnItemToInventoryCmdImpl()
ReturnItemToInventoryCmdImpl constructor. |
Method Summary | |
protected void |
callCreateReceipt(java.lang.Integer quantity,
java.lang.Long vendorID,
java.math.BigDecimal cost,
java.lang.String ccurr,
java.lang.Long rtnRcptDspId)
Calls common command for creating a receipt |
void |
createItemffmctr(java.lang.Long itemspcId)
The createItemffmctr method is called to add a new row in itemffmctr for this item, store and fufillment center when a receipt is created. |
protected void |
formulateNewReceipt()
Determine what values the new receipt should have |
protected boolean |
isItemTrackable()
Whether the baseitem is marked trackable for inventory purposes. |
protected void |
lookupOriginalReceipt()
Resolve required values not passed as arguments |
void |
performExecute()
Execute the command. |
void |
reset()
This method is called after a command has been executed to reset its states variables. |
void |
setDispositionDate(java.sql.Timestamp DispositionDate)
Set the date the new inventory receipt(s) are for |
void |
setFulfillmentCenter(java.lang.Integer ffmCenterId)
Set the fulfillment center to which inventory is being returned. |
void |
setOrderItemsId(java.lang.Long orderItemsId)
Set the order item from which the merchandise in question came. |
void |
setQuantity(java.lang.Integer quantity)
Set the quantity to returned to inventory. |
void |
setRtnRcptDspId(java.lang.Long rtnRcptDspId)
Set the Return Receipt Dispositionthe new inventory receipt(s) are for |
void |
setVersionSpecId(java.lang.Long versionSpecId)
Set the order item from which the merchandise in question came. |
void |
validateParameters()
Performs server side parameter checking. |
protected boolean |
wasItemTrackableAtAllocation()
Was inventory for item trackable at the time of allocation. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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 |
Constructor Detail |
public ReturnItemToInventoryCmdImpl()
Method Detail |
protected void callCreateReceipt(java.lang.Integer quantity, java.lang.Long vendorID, java.math.BigDecimal cost, java.lang.String ccurr, java.lang.Long rtnRcptDspId) throws ECException
quantity
- inventory quantityvendorID
- vendor idcost
- unit costccurr
- currencyrtnRcptDspId
- return receipt disposition idpublic void createItemffmctr(java.lang.Long itemspcId) throws ECException
protected void formulateNewReceipt() throws javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, ECException
protected boolean isItemTrackable() throws javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, ECException
protected void lookupOriginalReceipt() throws javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void reset()
AbstractECCommand
reset
in class AbstractECCommand
public void setDispositionDate(java.sql.Timestamp DispositionDate)
setDispositionDate
in interface ReturnItemToInventoryCmd
DispositionDate
- Return Receipt Dispostion Datepublic void setFulfillmentCenter(java.lang.Integer ffmCenterId)
setFulfillmentCenter
in interface ReturnItemToInventoryCmd
ffmCenterId
- Fulfillment Center identifierpublic void setOrderItemsId(java.lang.Long orderItemsId)
setOrderItemsId
in interface ReturnItemToInventoryCmd
orderItemsId
- Order Item identifierpublic void setQuantity(java.lang.Integer quantity)
setQuantity
in interface ReturnItemToInventoryCmd
orderItemsId
- Inventory Quantitypublic void setRtnRcptDspId(java.lang.Long rtnRcptDspId)
setRtnRcptDspId
in interface ReturnItemToInventoryCmd
rtnRcptDspId
- Return Receipt Dispostion IDpublic void setVersionSpecId(java.lang.Long versionSpecId)
setVersionSpecId
in interface ReturnItemToInventoryCmd
versionSpecId
- Order Item identifierpublic void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
ECException.
- protected boolean wasItemTrackableAtAllocation() throws javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, ECException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |