ORDRETURNITEM

This table holds the details of the order return items.

Column Descriptions:

Name Type Description
ORDRETURNITEM_ID BIGINT NOT NULL The unique identifier of the order return item.
ORDRETURN_ID BIGINT NOT NULL The unique identifier of the order return.
ORDERITEMS_ID BIGINT NOT NULL The unique identifier of the CSR User who submitted the return.
CSR_ID BIGINT The unique identifier of the CSR User who submitted the return.
REQ_QTY REQ_QTY The requested quantity to return.
CREDITAMOUNT DECIMAL(20,5) The unit price of the order item.
REC_QTY DOUBLE NOT NULL The actual received quantity of the item.
TOTALCREDIT DECIMAL(20,5) NOT NULL The total amount to credit to shopper for this item based on quantity received.
TAXAMOUNT DECIMAL(20,5) NOT NULL The tax of the total amount to credit to shopper.
DESCRIPTION VARCHAR(254) The short description of the return.
TIMECREATED TIMESTAMP NOT NULL Creation date and time.
LASTUPDATED TIMESTAMP NOT NULL Last updated date and time.
DATERECEIVED TIMESTAMP Received date and time.
STATUS VARCHAR(3) NOT NULL The status of the order return.
  • PND – Pending
  • APR – Approved
  • MAN – Manual Approved
  • RCV – All items are received
  • CLO – Closed
  • CAN - Cancelled
OTHER_JUSTIFICATION VARCHAR(254) The custom justification message for OTHER type of the justification.
FIELD1 INTEGER An integer field for customization.
FIELD2 DECIMAL(20,5) A decimal field for customization.
FIELD3 VARCHAR(254) A text field for customization.
COMMENTS VARCHAR(254) The comments of the return.
OPTCOUNTER SMALLINT The optimistic concurrency control counter for the table. Every time there is an update to the table, the counter is incremented.

Indexes:

Name Column Names Type
P_ORDRETURNITEM ORDRETURNITEM_ID Primary Key
I_ORDRETURNITEM_1 ORDRETURN_ID Non-Unique Index
I_ORDRETURNITEM_2 ORDERITEMS_ID Non-Unique Index
I_ORDRETURNITEM_3 CSR_ID Non-Unique Index

Constrained By Parent Tables:

Constraint Columns Parent Table Parent Columns Type
F_ORDRETURNITEM_ORDERITEMS_ID ORDERITEMS_ID ORDERITEMS ORDERITEMS_ID Cascade
F_ORDRETURNITEM_ORDRETURN_ID ORDRETURN_ID ORDRETURN ORDRETURN_ID Cascade
F_ORDRETURNITEM_CSR_ID CSR_ID USERS USERS_ID SET NULL