ERP 2.50:Developers Guide/Database Model/org.openbravo.model.common.currency/C Conversion Rate
ERP 2.50:Developers Guide/Database Model/org.openbravo.model.common.currency |
|
Contents
|
C_Conversion_Rate
The Conversion Rate defines the rates to use when converting a source currency to an accounting or reporting currency.
The Conversion Rates tab is used to define conversion rates to be used when converting document amounts from one currency to another. Conversion rates can be defined for multiple rate types. They can also be effective for a defined range of dates.
- Name:CurrencyConversionRate
- Classname:ConversionRate
This table contains the following columns:
Name | Nullable | Data Type | Description |
C_Conversion_Rate_ID | N | VARCHAR2(32) | The amount or quantity at which one unit of measure is changed to another. |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
IsActive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | N | DATE | The date that this record is completed. |
CreatedBy | N | VARCHAR2(32) | User who created this records |
Updated | N | DATE | x not implemented |
UpdatedBy | N | VARCHAR2(32) | User who updated this records |
C_Currency_ID | N | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
C_Currency_ID_To | N | VARCHAR2(32) | Target currency |
ValidFrom | N | DATE | A parameter stating the starting time of a specified request. |
ValidTo | Y | DATE | A parameter stating the ending time of a specified request. |
ConversionRateType | N | VARCHAR2(60) | A distinct conversion rate characteristic used for processes. |
MultiplyRate | N | NUMBER | The rate by which the base unit will be mutiplied by to create the converted unit. |
DivideRate | N | NUMBER | The rate by which the base unit will be divided by to create the converted unit. |
Other Info
Check constraints
These are the check constraints for this table:
- C_CONVERSION_RA_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- C_CONVERSIONRATE_ONCE
- C_CURRENCYRATE_KEY
Columns
Conversion Rate
The Conversion Rate defines the rate (multiply or divide) to use when converting a source currency to an accounting currency.
- Physical column name: C_Conversion_Rate_ID
- Property Name: id
- Reference: ID
- This column is part of the table's identifier
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_Org_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Active
There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: Table
- Default value: @SQL=SELECT C_CURRENCY_ID FROM AD_CLIENT WHERE AD_CLIENT_ID = @AD_CLIENT_ID@
Foreign key column to C_Currency table, (column: C_Currency_ID)
Reference Table C_Currency
To Currency
- Physical column name: C_Currency_ID_To
- Property Name: toCurrency
- Reference: Table
- Default value: @SQL=SELECT C_CURRENCY_ID FROM AD_CLIENT WHERE AD_CLIENT_ID = @AD_CLIENT_ID@
Foreign key column to C_Currency table, (column: C_Currency_ID)
Reference Table C_Currency
Valid from Date
The Valid From date indicates the first day of a date range
- Physical column name: ValidFrom
- Property Name: validFromDate
- Reference: Date
Valid to Date
The Valid To date indicates the last day of a date range
- Physical column name: ValidTo
- Property Name: validToDate
- Reference: Date
Conversion Rate Type
The Conversion Rate Type indicates the type of conversion rate. This allows you to enter multiple rates for the same currency pair. For example, one rate may be used for Spot conversions and a different rate for Revaluations.
- Physical column name: ConversionRateType
- Property Name: conversionRateType
- Reference: List
- Default value: S
List values: C_Conversion_Rate Types
The allowed values for this list are:
- A (Average): Average Rates
- C (Company): Company Rate
- F (Fixed): Euro Fixed Currency
- M (Manual Rate): Manual Rate
- N (None): No Conversion Rate
- P (Period End): Period Conversion Type
- S (Spot): Spot Conversation Rate Type
- U (User Type): User Rate Type
Multiple Rate by
To convert Source number to Target number, the Source is multiplied by the multiply rate. If the Multiply Rate is entered, then the Divide Rate will be automatically calculated.
- Physical column name: MultiplyRate
- Property Name: multipleRateBy
- Reference: General Quantity
Callout: SL_Conversion_Rate
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Conversion_Rate Java class.
Divide Rate by
To convert Source number to Target number, the Source is divided by the divide rate. If you enter a Divide Rate, the Multiply Rate will be automatically calculated.
- Physical column name: DivideRate
- Property Name: divideRateBy
- Reference: General Quantity
Callout: SL_Conversion_Rate
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Conversion_Rate Java class.