public class ReturnItem extends ModelObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String | EDIT_STATE
Constant for the line edit state.
|
static java.lang.String | NEW_STATE
Constant for the line new state.
|
static java.lang.String | PROP_AVAIL_SERIAL_NUMBERS
Constant for the PROP_AVAIL_SERIAL_NUMBERS property name.
|
static java.lang.String | PROP_CATENTRY_ID
Constant for the catalog entry id.
|
static java.lang.String | PROP_COMMENT
Constant for the PROP_COMMENT property name.
|
static java.lang.String | PROP_CREDIT_ADJUSTMENT
Constant for the credit adjustment.
|
static java.lang.String | PROP_CREDIT_AMOUNT
Constant for the credit amount.
|
static java.lang.String | PROP_CREDIT_BEFORE_TAX
Constant for the credit before tax property name.
|
static java.lang.String | PROP_CREDIT_DATE
Constant for the PROP_CREDIT_DATE property name.
|
static java.lang.String | PROP_CURRENCY_CODE
Constant for the currency code of the return item.
|
static java.lang.String | PROP_DIRTY
Constant for the dirty property name.
|
static java.lang.String | PROP_EDITABLE
Constant for the editable property name.
|
static java.lang.String | PROP_HAS_REQUIRED
Constant for the has required property name.
|
static java.lang.String | PROP_IS_VALID_PRODUCT
Constant for the has valid product property name.
|
static java.lang.String | PROP_LAST_UPDATED
Constant for the PROP_LAST_UPDATED property name.
|
static java.lang.String | PROP_ORDER_ITEM_ID
Constant for the orderItemId property name.
|
static java.lang.String | PROP_ORDERID
Constant for the PROP_ORDERID property name.
|
static java.lang.String | PROP_PHYSICAL_RETURN
Constant for the physical return.
|
static java.lang.String | PROP_PRODUCT_NAME
Constant for the PROP_PRODUCT_NAME property name.
|
static java.lang.String | PROP_PRODUCT_SKU
Constant for the product SKU.
|
static java.lang.String | PROP_QUANTITY
Constant for the PROP_QUANTITY property name.
|
static java.lang.String | PROP_RECIEPT
Constant for the receipt property name.
|
static java.lang.String | PROP_RETURN_REASON
Constant for the return reason.
|
static java.lang.String | PROP_RMAITEM_COMPONENT_ID
Constant for the rmaItemComponentId property name.
|
static java.lang.String | PROP_RMAITEM_ID
Constant for the rmaItemId property name.
|
static java.lang.String | PROP_SERIAL_DELETED_FLAG
Constant for the PROP_SERIAL_DELETED_FLAG property name.
|
static java.lang.String | PROP_SERIAL_NUMBERS
Constant for the PROP_SERIAL_NUMBER property name.
|
static java.lang.String | PROP_STATE
Constant for the state property name.
|
static java.lang.String | PROP_UNIQUE_ID
Constant for the PROP_UNIQUE_ID property name.
|
static java.lang.String | RECEIVE_NO
Constant for the RECEIVE_NO property name.
|
static java.lang.String | RECEIVE_YES
Constant for the RECEIVE_YES property.
|
static java.lang.String | ZERO_CASH
Constant for the ZERO_CASH property name.
|
Constructor and Description |
---|
ReturnItem()
Constructor for ReturnItem.
|
ReturnItem(Line orderItem)
This constructor decides the default values when an order item is added to a return
|
ReturnItem(Product product)
This constructor decides the default values when a product is added to a return
|
Modifier and Type | Method and Description |
---|---|
void | addSerialNumber(java.lang.String serialNumber)
This method is a convenience method for setting the "serialNumber" property.
|
java.util.ArrayList | getAvailableSerialNumbers()
This method is a convenience method for retrieving the current setting of the "serialNumberList" property.
|
java.lang.String | getCatEntryID()
This method is a convenience method for retrieving the current setting of the "catEntryID" property.
|
java.lang.String | getComment()
This method is a convenience method for retrieving the current setting of the "comment" property.
|
java.lang.String | getCreditAdjustment()
This method is a convenience method for retrieving the current setting of the "creditAdjustment" property.
|
java.lang.String | getCreditAmount()
This method is a convenience method for retrieving the current setting of the "creditAmount" property.
|
java.lang.String | getCreditBeforeTax()
This method is a convenience method for retrieving the current setting of the "getCreditBeforeTax" property.
|
java.lang.String | getCreditDate()
This method is a convenience method for retrieving the current setting of the "creditDate" property.
|
java.lang.String | getCurrencyCode()
This method is a convenience method for retrieving the current setting of the "currencyCode" property.
|
java.lang.String | getLastUpdated()
This method is a convenience method for retrieving the current setting of the "lastUpdated" property.
|
java.lang.String | getOrderId()
This method is a convenience method for retrieving the current setting of the "OrderId" property.
|
java.lang.String | getOrderItemId()
This method is a convenience method for retrieving the current setting of the "orderItemId" property.
|
java.lang.String | getPhysicalReturn()
This method is a convenience method for retrieving the current setting of the "physicalReturn" property.
|
java.lang.String | getProductName()
This method is a convenience method for retrieving the current setting of the "productName" property.
|
java.lang.String | getProductSKU()
This method is a convenience method for retrieving the current setting of the "productSKU" property.
|
java.lang.String | getQuantity()
This method is a convenience method for retrieving the current setting of the "quantity" property.
|
java.lang.String | getReturnReason()
This method is a convenience method for retrieving the current setting of the "returnReason" property.
|
java.lang.String | getRMAItem_id()
This method is a convenience method for retrieving the current setting of the "rMAItem_id" property.
|
java.util.ArrayList | getSerialNumbers()
This method is a convenience method for retrieving the current setting of the "serialNumbers" property.
|
java.lang.String | getState()
This method is a convenience method for retrieving the current setting of the "state" property.
|
boolean | hasSerialDeleted()
This method is a convenience method for retrieving the current setting of the "serialDeleted" property
|
void | initialize(Line orderItem)
This method initializes the properties for this return item from the specified order item.
|
void | initialize(Product product)
This method initializes the properties for this return item from the specified product.
|
boolean | isDirty()
This method is a convenience method for retrieving the current setting of the "dirty" property.
|
boolean | isEditable()
This method is a convenience method for retrieving the current setting of the "editable" property.
|
boolean | isHasRequired()
This method is a convenience method for retrieving the current setting of the "hasrequired" property.
|
boolean | isProductValid()
This method is a convenience method for retrieving the current setting of the "isProductValid" property.
|
boolean | isReturnReciept()
This method is a convenience method for retrieving the current setting of the "returnReciept" property.
|
void | setAvailableSerialNumbers(java.util.ArrayList serialNumberList)
This method sets the SerialNumberList that this item belongs to.
|
void | setCatEntryID(java.lang.String catEntryID)
This method is a convenience method for setting the "catEntryID" property.
|
void | setComment(java.lang.String comment)
This method is a convenience method for setting the "comment" property.
|
void | setCreditAdjustment(java.lang.String creditAdjustment)
This method is a convenience method for setting the "creditAdjustment" property.
|
void | setCreditAmount(java.lang.String creditAmount)
This method is a convenience method for setting the "creditAmount" property.
|
void | setCreditBeforeTax(java.lang.String creditBeforeTax)
This method is a convenience method for setting the "creditBeforeTax" property.
|
void | setCreditDate(java.lang.String creditDate)
This method is a convenience method for setting the "creditDate" property.
|
void | setCurrencyCode(java.lang.String currencyCode)
A convenience method to set the currrencyCode property.
|
void | setDirty(boolean dirty)
This method is a convenience method for setting the "dirty" property.
|
void | setEditable(boolean editable)
This method is a convenience method for setting the "editable" property.
|
void | setHasRequired(boolean hasrequired)
This method is a convenience method for setting the "hasrequired" property.
|
void | setLastUpdated(java.lang.String lastUpdated)
This method is a convenience method for setting the "lastUpdated" property.
|
void | setOrderId(java.lang.String orderId)
This method is a convenience method for setting the "orderId" property.
|
void | setOrderItemId(java.lang.String orderItemId)
This method is a convenience method for setting the "orderItemId" property.
|
void | setPhysicalReturn(java.lang.String physicalReturn)
This method is a convenience method for setting the "physicalReturn" property.
|
void | setProductName(java.lang.String productName)
This method is a convenience method for setting the "productName" property.
|
void | setProductSKU(java.lang.String productSKU)
This method is a convenience method for setting the "productSKU" property.
|
void | setProductValid(boolean isValid)
This method is a convenience method for setting the "isValidProduct" property.
|
void | setQuantity(java.lang.String quantity)
This method is a convenience method for setting the "quantity" property.
|
void | setReturnReason(java.lang.String returnReason)
This method is a convenience method for setting the "returnReason" property.
|
void | setReturnReciept(boolean returnReciept)
This method is a convenience method for setting the "returnReciept" property.
|
void | setRMAItem_id(java.lang.String item_id)
This method is a convenience method for setting the "item_id" property.
|
void | setSerialDeleted(boolean flag)
This method is a convenience method for setting the "serialDeleted" property
|
void | setSerialNumbers(java.util.ArrayList serialNumbers)
This method is a convenience method for setting the "serialNumbers" property.
|
void | setState(java.lang.String state)
This method is a convenience method for setting the "state" property.
|
java.lang.String | toString()
This method returns string representation of values.
|
public static final java.lang.String PROP_RMAITEM_ID
Value is "rMAItem_id"
The data stored under the "rMAItem_id" property is a String that contains the rmaItemId
public static final java.lang.String PROP_RMAITEM_COMPONENT_ID
Value is "rMAItemComponent_id"
The data stored under the "rMAItemComponent_id" property is a String that contains the rmaItemId
public static final java.lang.String PROP_ORDER_ITEM_ID
Value is "orderItemId"
The data stored under the "orderItemId" property is a String that contains the orderItemId (if any) linked to this item
public static final java.lang.String PROP_CATENTRY_ID
Value is "catEntryID"
The data stored under the "catEntryID" property is a String that contains the catalog entry id
public static final java.lang.String PROP_PRODUCT_SKU
Value is "productSKU"
The data stored under the "productSKU" property is a String that contains the SKU of the product
public static final java.lang.String PROP_PRODUCT_NAME
Value is "productName"
The data stored under the "productName" property is a String that contains the name of the product
public static final java.lang.String PROP_QUANTITY
Value is "quantity"
The data stored under the "quantity" property is a String that contains the returned quantity
public static final java.lang.String PROP_RETURN_REASON
Value is "returnReason"
The data stored under the "returnReason" property is a String that contains the code indicating the reason for return
public static final java.lang.String PROP_PHYSICAL_RETURN
Value is "physicalReturn"
The data stored under the property is a Boolean that indicated if the item needs to be returned to the fulfillment center
public static final java.lang.String PROP_CREDIT_AMOUNT
Value is "creditAmount"
The data stored under the property is a String that contains the base credit amount for the item
public static final java.lang.String PROP_CREDIT_ADJUSTMENT
Value is "creditAdjustment"
The data stored under the "creditBeforeTax" property is a String that contains the adjustment to the credit amount.
public static final java.lang.String PROP_CREDIT_BEFORE_TAX
Value is "creditBeforeTax"
The data stored under the "creditBeforeTax" property is a String that contains the credit amount before taxes
public static final java.lang.String PROP_CREDIT_DATE
Value is
The data stored under the property is a String that contains the
public static final java.lang.String PROP_SERIAL_NUMBERS
Value is "serialNumbers"
The data stored under the serialNumbers property is an ArrayList
public static final java.lang.String PROP_LAST_UPDATED
Value is "lastUpdated"
The data stored under the lastUpdated property is a String that contains the
public static final java.lang.String PROP_COMMENT
Value is "comment"
The data stored under the comment property is a String
public static final java.lang.String PROP_ORDERID
Value is "orderId"
The data stored under the "orderId" property is a String that contains the orderid (if any) that this item was originally linked to
public static final java.lang.String RECEIVE_YES
Value is "Y"
The data stored under the RECEIVE_YES property is a String that contains the code for indicating that an item should be physically returned to the FFMC.
public static final java.lang.String RECEIVE_NO
Value is "N"
The data stored under the RECEIVE_NO property is a String that contains the code for indicating that an item need not be physically returned to the FFMC.
public static final java.lang.String ZERO_CASH
Value is "0.00"
The data stored under the ZERO_CASH property is a String that contains the value to initialize all fields containing cash figures.
public static final java.lang.String PROP_AVAIL_SERIAL_NUMBERS
Value is "availableSerialNumbers"
The data stored under the availableSerialNumbers property is a ArrayList that contains Stringobjects representing the serial numbers that could possibly be chosen for this return item
public static final java.lang.String PROP_UNIQUE_ID
Value is "uid"
The data stored under the uid property is an Integer
public static final java.lang.String PROP_DIRTY
The value is "dirty".
The data stored under the "dirty" property is a java.lang.String that represents the if the line is dirty.
public static final java.lang.String PROP_EDITABLE
The value is "editable".
The data stored under the "editable" property is a Boolean that indicates if the line item is editable.
public static final java.lang.String PROP_HAS_REQUIRED
The value is "required".
The data stored under the "required" property is a java.lang.String that represents the if all the required line properties are present.
public static final java.lang.String NEW_STATE
The value is "new".
public static final java.lang.String EDIT_STATE
The value is "edit".
public static final java.lang.String PROP_STATE
The value is "state".
The data stored under the "state" property is a java.lang.String that represents the state of the line (New, Edit, or Delete).
public static final java.lang.String PROP_RECIEPT
The value is "reciept".
The data stored under the "reciept" property is a java.lang.String that represents if the line must be receipt or not.
public static final java.lang.String PROP_SERIAL_DELETED_FLAG
Value is "serialDeleted"
The data stored under the serialDeleted property is a Boolean that flags the item for deleted serial numbers
public static final java.lang.String PROP_IS_VALID_PRODUCT
The value is "isValidProduct".
The data stored under the "PROP_IS_VALID_PRODUCT" property is a java.lang.Boolean that represents the if the product contained in this line is valid or not. This property is used by the return editor.
public static final java.lang.String PROP_CURRENCY_CODE
The value is "currencyCode". The data stored under the "PROP_CURRENCY_CODE" is a java.lang.String that represents the currency code of the line.
public ReturnItem()
public ReturnItem(Line orderItem)
public ReturnItem(Product product)
public void initialize(Line orderItem)
public void initialize(Product product)
public java.lang.String toString()
public java.lang.String getCatEntryID()
public void setCatEntryID(java.lang.String catEntryID)
public java.lang.String getOrderItemId()
public void setOrderItemId(java.lang.String orderItemId)
public java.lang.String getProductName()
public void setProductName(java.lang.String productName)
public java.lang.String getProductSKU()
public void setProductSKU(java.lang.String productSKU)
public java.lang.String getPhysicalReturn()
public void setPhysicalReturn(java.lang.String physicalReturn)
public java.lang.String getQuantity()
public void setQuantity(java.lang.String quantity)
public java.lang.String getReturnReason()
public void setReturnReason(java.lang.String returnReason)
public java.lang.String getRMAItem_id()
public void setRMAItem_id(java.lang.String item_id)
public java.lang.String getComment()
public void setComment(java.lang.String comment)
public java.lang.String getCreditAdjustment()
public void setCreditAdjustment(java.lang.String creditAdjustment)
public java.lang.String getCreditAmount()
public void setCreditAmount(java.lang.String creditAmount)
public java.lang.String getCreditDate()
public void setCreditDate(java.lang.String creditDate)
public java.lang.String getLastUpdated()
public void setLastUpdated(java.lang.String lastUpdated)
public java.util.ArrayList getSerialNumbers()
public void setSerialNumbers(java.util.ArrayList serialNumbers)
public void addSerialNumber(java.lang.String serialNumber)
public java.lang.String getCreditBeforeTax()
public void setCreditBeforeTax(java.lang.String creditBeforeTax)
public java.lang.String getOrderId()
public void setOrderId(java.lang.String orderId)
public java.lang.String getCurrencyCode()
public java.util.ArrayList getAvailableSerialNumbers()
public void setAvailableSerialNumbers(java.util.ArrayList serialNumberList)
public void setDirty(boolean dirty)
public boolean isDirty()
public boolean isEditable()
public void setEditable(boolean editable)
public void setHasRequired(boolean hasrequired)
public boolean isHasRequired()
public void setState(java.lang.String state)
public java.lang.String getState()
public boolean isReturnReciept()
public void setReturnReciept(boolean returnReciept)
public boolean hasSerialDeleted()
public void setSerialDeleted(boolean flag)
public void setProductValid(boolean isValid)
public boolean isProductValid()
public void setCurrencyCode(java.lang.String currencyCode)