ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.currency/C Conversion Rate Document
C_Conversion_Rate_Document
- Name:C_Conversion_Rate_Document
- Classname:CurrencyConversionRateDoc
This table contains the following columns:
Name | Nullable | Data Type | Description
|
Isactive | No | CHAR (1) | 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. |
C_Conversion_Rate_Document_ID | No | VARCHAR (32) | |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
Createdby | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
C_Currency_ID | No | VARCHAR (32) | Indicates the currency to be used when processing this document. |
FIN_Finacc_Transaction_ID | Yes | VARCHAR (32) | |
aprm_finacc_transaction_v_id | Yes | VARCHAR (32) | |
Foreign_Amount | No | DECIMAL | |
C_Invoice_ID | Yes | VARCHAR (32) | The Invoice ID uniquely identifies an Invoice Document. |
GL_Journal_ID | Yes | VARCHAR (32) | The General Ledger Journal identifies a group of journal lines which represent a logical business transaction |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
FIN_Payment_ID | Yes | VARCHAR (32) | Payment event |
Rate | Yes | DECIMAL | The Rate indicates the percentage to be multiplied by the source to arrive at the tax or exchange amount. |
C_Currency_Id_To | No | VARCHAR (32) | The Currency To defines the target currency for this conversion rate. |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
Updatedby | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
Columns
Active
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
C_Conversion_Rate_Document_ID
- Physical column name: C_Conversion_Rate_Document_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to C_Currency table, (column: C_Currency_ID)
It has a validation "Document currency", with the following code
C_Currency.C_Currency_id =
CASE WHEN @C_Invoice_ID@ is not null THEN (SELECT C_Currency_ID FROM C_Invoice WHERE C_Invoice_ID = COALESCE(@C_Invoice_ID@,'---')) WHEN @APRM_Finacc_Transaction_V_ID@ is not null THEN (SELECT c_currency_id FROM aprm_finacc_transaction_v WHERE aprm_finacc_transaction_v_id = COALESCE(@APRM_Finacc_Transaction_V_ID@, '---')) WHEN @FIN_Finacc_Transaction_ID@ is not null THEN (SELECT c_currency_id FROM fin_finacc_transaction WHERE fin_finacc_transaction_id = COALESCE(@FIN_Finacc_Transaction_ID@, '---')) WHEN @GL_Journal_ID@ is not null THEN (SELECT c_currency_id FROM gl_journal WHERE gl_journal_id = COALESCE(@GL_Journal_ID@, '---')) ELSE (SELECT C_Currency_ID FROM FIN_Payment WHERE FIN_Payment_ID = COALESCE(@FIN_Payment_ID@, '---')) END
FIN Financial account transaction
- Physical column name: FIN_Finacc_Transaction_ID
- Property Name: fINFinancialAccountTransaction
- Reference: TableDir
- This column is a child for a business object (is Parent)
Foreign key column to FIN_Finacc_Transaction table, (column: Fin_Finacc_Transaction_ID)
Financial account transaction
- Physical column name: aprm_finacc_transaction_v_id
- Property Name: financialAccountTransaction
- Reference: Search
- This column is a child for a business object (is Parent)
Foreign key column to APRM_Finacc_Transaction_v table, (column: Aprm_Finacc_Transaction_V_ID)
Foreign Amount
- Physical column name: Foreign_Amount
- Property Name: foreignAmount
- Reference: Amount
Callout: SE_CalculateExchangeRate
This column has a callout associated.
It is implemented by [1] Java Class.
Invoice
- Physical column name: C_Invoice_ID
- Property Name: invoice
- Reference: TableDir
- This column is a child for a business object (is Parent)
Foreign key column to C_Invoice table, (column: C_Invoice_ID)
Journal Entry
- Physical column name: GL_Journal_ID
- Property Name: journalEntry
- Reference: TableDir
- This column is a child for a business object (is Parent)
Foreign key column to GL_Journal table, (column: GL_Journal_ID)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Payment
- Physical column name: FIN_Payment_ID
- Property Name: payment
- Reference: TableDir
- This column is a child for a business object (is Parent)
Foreign key column to FIN_Payment table, (column: Fin_Payment_ID)
Rate
- Physical column name: Rate
- Property Name: rate
- Reference: General Quantity
Callout: SE_CalculateExchangeRate
This column has a callout associated.
It is implemented by [2] Java Class.
To Currency
- Physical column name: C_Currency_Id_To
- Property Name: toCurrency
- Reference: Table
- This column is part of the table's identifier
Foreign key column to C_Currency table, (column: C_Currency_ID)
It has a validation "Accounting Schema currency", with the following code
C_Currency.C_Currency_id in (SELECT C_Currency_ID FROM C_Acctschema)
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- C_CONVERSIONRATEDOC_UN Unique. Columns:
- C_CURRENCY_ID
- C_CURRENCY_ID_TO
- functionBasedColumn
- functionBasedColumn
- functionBasedColumn
- functionBasedColumn
- C_CONVRATEDOC_FINACCTRX_IDX Not Unique. Columns:
- FIN_FINACC_TRANSACTION_ID
- C_CONVRATEDOC_GLJOURNAL_IDX Not Unique. Columns:
- GL_JOURNAL_ID
- C_CONVRATEDOC_INVOICE_IDX Not Unique. Columns:
- C_INVOICE_ID
- C_CONVRATEDOC_PAYMENT_IDX Not Unique. Columns:
- FIN_PAYMENT_ID
Check Constraints
These are the check constraints for this table:
- C_CONVERSIONRATEDOC_ACTIVE: ISACTIVE IN ('Y', 'N')