This table is used to keep track of Refund Amounts by Trading Agreements, by Orders and by RMA ID. Entries are created only for Trading Agreement with Right-to-Buy by Amount or Obligation-to-Buy by Amount Terms and Conditions.
Column Description(s):
Column Name | Column Type | Description |
TRDREFAMT_ID |
BIGINT NOT NULL |
Generated unique key. |
ORDERS_ID |
BIGINT NOT NULL |
Order ID. Foreign key to the ORDERS table. |
SETCCURR |
CHAR(3) |
Currency of the Amount field. This is a currency code as per ISO 4217 standards. |
RMA_ID |
BIGINT NOT NULL |
ID for the Return Merchandise Authorization (RMA). |
TRADING_ID |
BIGINT NOT NULL |
ID for the Trading Agreement. Foreign key to the TRADING table. |
AMOUNT |
DECIMAL (20,5) NOT NULL |
Total Refund Amount for this Trading Agreement for this RMA and Order. The amount is in the same currency of the Right-to-Buy Amount and Obligation-to-Buy Amount. |
OPTCOUNTER |
SMALLINT |
Reserved for IBM internal use. |
Index(es):
Index Name | Indexed Column Names | Index Type |
SQL050212031323930 |
TRDREFAMT_ID |
Primary Key |
I0000821 |
TRADING_ID |
Non-Unique Index |
I0000822 |
RMA_ID |
Non-Unique Index |
I0000823 |
ORDERS_ID |
Non-Unique Index |
Constraint(s):
Constraint Name | Column Name(s) | Foreign Table Name | Foreign Column Name(s) | Constraint Type |
F_880 |
ORDERS_ID |
ORDERS |
ORDERS_ID |
Cascade |
F_881 |
RMA_ID |
RMA |
RMA_ID |
Cascade |
F_879 |
SETCCURR |
SETCURR |
SETCCURR |
Cascade |
F_882 |
TRADING_ID |
TRADING |
TRADING_ID |
Cascade |
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.