Each row of this table represents a rule that can be used to convert a price (stored in the database in a particular currency) to an amount the customer will be charged in a supported shopping currency (a currency in which payment is accepted).
Column Name | Column Type | Description |
---|---|---|
STOREENT_ID | INTEGER NOT NULL | The StoreEntity this conversion rule is part of. |
FROMCURR | CHAR(3) NOT NULL | An amount in the FROMCURR currency is normally part of a rule or other information used to determine a price, discount, shipping charge, or similar amount associated with a product offered for sale. |
TOCURR | CHAR(3) NOT NULL | TOCURR is normally the currency in which the customer intends to pay. Amounts in this currency are normally part of an OrderItem, such as a unit price, shipping charge, or tax amount. |
FACTOR | DECIMAL (31,20) NOT NULL DEFAULT 1 | The conversion factor. Implicit conversion rules may be derived from explicit rules by combining conversion factors, but no more than one unidirectional rule can be used to derive any particular implicit rule. |
MULTIPLYORDIVIDE | CHAR(1) NOT NULL DEFAULT 'M' | To convert from FROMCURR to TOCURR: M = Multiply by FACTOR D = Divide by FACTOR For bidirectional rules, conversion from TOCURR to FROMCURR is allowed using the inverse operation. |
BIDIRECTIONAL | CHAR(1) NOT NULL DEFAULT 'N' | Indicates whether the rule is bidirectional or unidirectional: Y = bidirectional. N = unidirectional. |
UPDATABLE | CHAR(1) NOT NULL DEFAULT 'Y' | A flag intended to be used by a user interface that manages currency conversion rules. Valid values: N = conversion rate is irrevocable - should never be changed Y = conversion rate can be changed. |
CURCONVERT_ID | INTEGER NOT NULL | Generated unique key. |
OPTCOUNTER | SMALLINT | Reserved for IBM internal use. |
Index Name | Indexed Column Names | Index Type |
---|---|---|
I0000083 | FROMCURR+TOCURR+STOREENT_ID | Unique Index |
SQL050212031219740 | CURCONVERT_ID | Primary Key |
I0000551 | STOREENT_ID | Non-Unique Index |
Constraint Name | Column Name(s) | Foreign Table Name | Foreign Column Name(s) | Constraint Type |
---|---|---|---|---|
F_284 | TOCURR | SETCURR | SETCCURR | Cascade |
F_285 | FROMCURR | SETCURR | SETCCURR | Cascade |
F_286 | STOREENT_ID | STOREENT | STOREENT_ID | Cascade |