ERP 2.50:Developers Guide/Database Model/org.openbravo.model.common.bank/C Bank
ERP 2.50:Developers Guide/Database Model/org.openbravo.model.common.bank |
|
C_Bank
Defines a bank that is used by an organization or business partner. Each Bank is given an identifying Name, Address, Routing No and Swift Code
- Name:Bank
- Classname:Bank
This table contains the following columns:
Name | Nullable | Data Type | Description |
C_Bank_ID | N | VARCHAR2(32) | Bank |
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 |
Name | N | NVARCHAR2(60) | A non-unique identifier for a record/document often used as a search tool. |
RoutingNo | Y | NVARCHAR2(20) | Bank Routing Number |
C_Location_ID | Y | VARCHAR2(32) | A specific place or residence. |
SwiftCode | Y | NVARCHAR2(20) | Swift Code (Society of Worldwide Interbank Financial Telecommunications) |
IsOwnBank | Y | CHAR(1) | Bank for this Organization |
Codebank | Y | NVARCHAR2(4) | Code of the bank |
Codebranch | Y | NVARCHAR2(4) | Code of the branch |
Digitcontrol | Y | NVARCHAR2(1) | Digit control |
INE_Number | Y | NVARCHAR2(9) | INE Number. |
C_BPartner_ID | Y | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
Other Info
Check constraints
These are the check constraints for this table:
- C_BANK_CODEBANK_CHK: (((CODEBANK IS NULL) OR (LENGTH((CODEBANK)) = 4)) AND ((CODEBRANCH IS NULL) OR (LENGTH((CODEBRANCH)) = 4))) AND ((DIGITCONTROL IS NULL) OR (LENGTH((DIGITCONTROL)) = 1))
- C_BANK_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- C_BANK_ISOWNBANK_CHK: ISOWNBANK 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_BANK_KEY
Columns
Bank
The Bank is a unique identifier of a Bank for this Organization or for a Business Partner with whom this Organization transacts.
- Physical column name: C_Bank_ID
- Property Name: id
- Reference: ID
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)
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
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)
Name
A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Routing No
The Bank Routing Number (ABA Number) identifies a legal Bank. It is used in routing checks and electronic transactions.
- Physical column name: RoutingNo
- Property Name: routingNo
- Reference: String
Location / Address
- Physical column name: C_Location_ID
- Property Name: locationAddress
- Reference: Search
Foreign key column to C_Location table, (column: C_Location_ID)
Swift code
The SWIFT code is an identifier of a Bank
- Physical column name: SwiftCode
- Property Name: swiftCode
- Reference: String
Own Bank
The Own Bank field indicates if this bank is for this Organization as opposed to a Bank for a Business Partner.
- Physical column name: IsOwnBank
- Property Name: ownBank
- Reference: YesNo
- Default value: Y
Bank Code
First four numbers of the bank account number which identifies the bank uniquely.
- Physical column name: Codebank
- Property Name: bankCode
- Reference: String
Branch Code
Second group of four numbers of the bank account which identifies the branch uniquely.
- Physical column name: Codebranch
- Property Name: branchCode
- Reference: String
Control Digit
Tenth number of the bank account.
- Physical column name: Digitcontrol
- Property Name: controlDigit
- Reference: String
INE No.
Number provided by the bank to configurate remittances.
- Physical column name: INE_Number
- Property Name: iNENo
- Reference: String
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Related tables
Tables that link this table: