public abstract class ReturnItemBaseCmdImpl extends ReturnBaseCmdImpl implements ReturnItemAddCmd, ReturnItemUpdateCmd
Modifier and Type | Field and Description |
---|---|
protected java.util.Hashtable | ihshAttr_name
This is a hash table of attribute name for the product.
|
protected java.util.Hashtable | ihshAttr_value
This is a hash table of attribute value for the product.
|
protected java.util.Hashtable | ihshCatentry_id
This is a hash table of catentry ids returned.
|
protected java.util.Hashtable | ihshComment
This is a hash table of comments for return items.
|
protected java.util.Hashtable | ihshCreditAdjustment
This is a hash table of credit adjustment.
|
protected java.util.Hashtable | ihshKey
The hash keys.
|
protected java.util.Hashtable | ihshOrderitem_id
This is a hash table of order item id.
|
protected java.util.Hashtable | ihshQuantity
This is a hash table of quantity being returned.
|
protected java.util.Hashtable | ihshReason
This is a hash table of reason for return items.
|
protected java.util.Hashtable | ihshReasonId
This is a hash table of reason id for return items.
|
protected java.util.Hashtable | ihshReceive
This is a hash table of received value.
|
protected java.util.Hashtable | ihshRMAItem_id
This is a hash table of RMA item id.
|
protected java.util.Hashtable | ihshRMAItems
This is a hash table of RMA items.
|
protected java.util.Hashtable | ihshUom
This is a hash table of unit of measure.
|
protected static java.lang.String | STR_ATTR_NAME
STR_ATTR_NAME
|
protected static java.lang.String | STR_ATTR_VALUE
STR_ATTR_VALUE
|
protected static java.lang.String | STR_CATENTRY_ID
STR_CATENTRY_ID
|
Modifier | Constructor and Description |
---|---|
protected | ReturnItemBaseCmdImpl()
This is the ReturnItemBaseCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | addFromCatEntry(java.lang.Integer index)
This method adds a RMA Item from a catalog entry.
|
protected void | addFromOrderItem(java.lang.Integer index)
This method adds an RMA Item from an order item.
|
protected void | autoApprove(RMAItemAccessBean anRMAItemAB)
This method approves a RMA item automatically.
|
protected java.lang.Long[] | calcCatInfo(java.lang.Integer index, java.lang.Long aCatEntryId)
This method calculates the catEntry and itemSpec for the catEntry.
|
protected java.util.List | calcQuantities(OrderItemComponentAccessBean aComponentAB, RMAItemAccessBean anRMAItemAB)
This method calculates the quantities for a RMA item component.
|
protected void | checkRefundAmount(RMAItemAccessBean anRMAItemAB)
This method checks whether the sum of RMA item's credit amount, adjustment credit and adjustment is lower than zero.
|
protected java.lang.String | createRMA()
This method creates a new RMA.
|
protected abstract boolean | doAdd()
This method does nothing in this implementation.
|
protected abstract boolean | doUpdate()
This method does nothing in this implementation.
|
protected abstract void | extendCommand()
This method extends the command here.
|
java.lang.Long | getActiveOrganizationId()
This method gets the organization id that the customer is shopping under.
|
protected java.util.Hashtable | getAttributeNVP(java.lang.Integer index)
This method gets attribute NVPs.
|
protected java.lang.Long | getBaseItemIdByItemSpc(java.lang.Long anItemSpcId)
This method gets the base item id from the item specification id.
|
protected java.lang.Long | getCatEntryId(java.lang.Integer index)
This method gets the catEntry id value for the appropriate index.
|
protected java.math.BigDecimal | getCreditAdjustment(java.lang.Integer index)
This method gets the appropriate credit adjustment for the index.
|
protected java.lang.String | getItemReturnDesired(java.lang.Long aCatEntryId, java.lang.Long aBaseItemId)
This method gets the value about whether the item is desired to be returned.
|
protected abstract int | getMe()
This method does nothing in this implementation.
|
protected java.lang.Double | getNormalizedQuantity(java.lang.Integer index, java.lang.Long aCatEntryId)
This method gets the normalized quantity.
|
protected OrderItemAccessBean | getOrderItemAB(java.lang.Long anOrderItemId)
This method gets an orderItem access bean based on the orderItem Id.
|
protected java.lang.Long | getOrderItemId(java.lang.Integer index)
This method gets the appropriate order item identifier for the index.
|
protected java.util.List | getOrderList()
This method gets the list of order access beans associated with the returns order items.
|
protected java.lang.Double | getQuantity(java.lang.Integer index)
This method gets the quantity value for the appropriate index.
|
protected java.lang.String | getReason(java.lang.Integer index)
This method gets the reason code value for the appropriate index.
|
protected java.lang.Integer | getReasonId(java.lang.Integer index)
This method gets the reason id value for the appropriate index.
|
protected java.lang.String | getReceive(java.lang.Integer index)
This method gets the receive value for the specified index.
|
protected RMAAccessBean | getRMA()
This method gets the RMA access bean.
|
protected java.lang.Long | getRMAItemId(java.lang.Integer index)
This method gets the RMA item id value for the appropriate index.
|
protected java.sql.Timestamp | getTimestampNow()
This method gets the time stamp for now.
|
protected java.lang.String | getUOM(java.lang.Integer index)
This method gets the unit of measure (UOM) value for the appropriate index.
|
protected java.lang.String | getUOM(java.lang.Long catEntID)
This method retrieves the value of the unit of measure (UOM) for the catalog entry.
|
protected RMAAccessBean | getUpdateRMA()
This method gets the RMA for Update.
|
protected boolean | isAdminCommand()
This method identifies if this command is being called by a CSR (using forUser/forUserId).
|
protected boolean | isCatEntryWithoutOrderItemReturnAllowedForShopper()
This method decides whether a shopper can return a catEntry without an orderItem.
|
protected boolean | isNewRMA()
This method specifies whether it is a new RMA.
|
protected boolean | isRMAItemKit(RMAItemAccessBean anRMAitemAB)
This method decides whether the RMA item is a kit.
|
void | performExecute()
This method executes the command.
|
void | reset()
This method resets the command.
|
void | setActiveOrganizationId(java.lang.Long long1)
This method sets the active organization id for this command.
|
void | setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties of this command implementation.
|
protected void | updateRMAItem(java.lang.Integer index)
This method updates an RMA item with the correct quantity, set the amounts, check the refund amounts, approve the amount automatically and commit the transaction.
|
protected void | updateRMAItemInvQuantity(RMAItemAccessBean anRMAItemAB)
This method updates the inventory quantity to the RMA item access bean.
|
protected void | validateCatEntry(java.lang.Long aCatEntryId)
This method checks for all supported catEntry types.
|
void | validateParameters()
This method checks the mandatory parameters.
|
protected java.util.Hashtable ihshCatentry_id
protected java.util.Hashtable ihshAttr_name
protected java.util.Hashtable ihshAttr_value
protected java.util.Hashtable ihshReceive
protected java.util.Hashtable ihshCreditAdjustment
protected java.util.Hashtable ihshKey
protected java.util.Hashtable ihshQuantity
protected java.util.Hashtable ihshUom
protected java.util.Hashtable ihshComment
protected java.util.Hashtable ihshReason
protected java.util.Hashtable ihshReasonId
protected java.util.Hashtable ihshOrderitem_id
protected java.util.Hashtable ihshRMAItem_id
protected java.util.Hashtable ihshRMAItems
protected static final java.lang.String STR_CATENTRY_ID
protected static final java.lang.String STR_ATTR_NAME
protected static final java.lang.String STR_ATTR_VALUE
protected ReturnItemBaseCmdImpl()
protected void addFromCatEntry(java.lang.Integer index) throws ECException
protected void addFromOrderItem(java.lang.Integer index) throws ECException
protected void autoApprove(RMAItemAccessBean anRMAItemAB) throws ECException
protected java.lang.Long[] calcCatInfo(java.lang.Integer index, java.lang.Long aCatEntryId) throws ECException
protected java.util.List calcQuantities(OrderItemComponentAccessBean aComponentAB, RMAItemAccessBean anRMAItemAB) throws ECSystemException
protected abstract boolean doAdd()
protected abstract boolean doUpdate()
protected java.lang.String getItemReturnDesired(java.lang.Long aCatEntryId, java.lang.Long aBaseItemId) throws ECException
protected abstract void extendCommand() throws ECException
protected java.util.Hashtable getAttributeNVP(java.lang.Integer index) throws InvalidParameterValueException
protected java.lang.Long getBaseItemIdByItemSpc(java.lang.Long anItemSpcId) throws ECException
protected java.lang.Long getCatEntryId(java.lang.Integer index) throws InvalidParameterValueException
protected java.math.BigDecimal getCreditAdjustment(java.lang.Integer index) throws InvalidParameterValueException
protected abstract int getMe()
protected java.lang.Double getNormalizedQuantity(java.lang.Integer index, java.lang.Long aCatEntryId) throws ECException
protected OrderItemAccessBean getOrderItemAB(java.lang.Long anOrderItemId) throws ECException
protected java.lang.Long getOrderItemId(java.lang.Integer index) throws InvalidParameterValueException
protected java.util.List getOrderList() throws ECException
protected java.lang.Double getQuantity(java.lang.Integer index) throws InvalidParameterValueException
protected java.lang.String getReason(java.lang.Integer index)
protected java.lang.Integer getReasonId(java.lang.Integer index)
protected java.lang.String getReceive(java.lang.Integer index)
protected RMAAccessBean getRMA() throws ECException
protected java.lang.Long getRMAItemId(java.lang.Integer index) throws ECApplicationException
protected java.sql.Timestamp getTimestampNow()
protected java.lang.String getUOM(java.lang.Integer index)
protected RMAAccessBean getUpdateRMA() throws ECException
protected boolean isAdminCommand()
protected boolean isCatEntryWithoutOrderItemReturnAllowedForShopper()
protected boolean isRMAItemKit(RMAItemAccessBean anRMAitemAB) throws ECException
protected boolean isNewRMA()
public void performExecute() throws ECException
public void reset()
protected void updateRMAItemInvQuantity(RMAItemAccessBean anRMAItemAB) throws ECException
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
protected void updateRMAItem(java.lang.Integer index) throws ECException
protected void validateCatEntry(java.lang.Long aCatEntryId) throws ECException
public void validateParameters() throws ECException
Parameters
public java.lang.Long getActiveOrganizationId()
public void setActiveOrganizationId(java.lang.Long long1)
protected void checkRefundAmount(RMAItemAccessBean anRMAItemAB) throws ECException
protected java.lang.String createRMA() throws ECException
protected java.lang.String getUOM(java.lang.Long catEntID) throws ECException