ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.bank/C Bank
C_Bank
- Name:C_Bank
- Classname:Bank
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_Bank_ID | No | VARCHAR (32) | The Bank is a unique identifier of a Bank for this Organization or for a Business Partner with whom this Organization transacts. |
Codebank | Yes | NVARCHAR (4) | First four numbers of the bank account number which identifies the bank uniquely. |
Codebranch | Yes | NVARCHAR (4) | Second group of four numbers of the bank account which identifies the branch uniquely. |
C_BPartner_ID | Yes | VARCHAR (32) | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
Digitcontrol | Yes | NVARCHAR (1) | Tenth number of the bank account. |
C_Country_ID | Yes | VARCHAR (32) | The Country defines a Country. Each Country must be defined before it can be used in any document. |
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. |
INE_Number | Yes | NVARCHAR (9) | Number provided by the bank to configurate remittances. |
C_Location_ID | Yes | VARCHAR (32) | The Location / Address field defines the location of an entity. |
Name | No | NVARCHAR (60) | 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. |
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. |
IsOwnBank | Yes | CHAR (1) | The Own Bank field indicates if this bank is for this Organization as opposed to a Bank for a Business Partner. |
RoutingNo | Yes | NVARCHAR (20) | The Bank Routing Number (ABA Number) identifies a legal Bank. It is used in routing checks and electronic transactions. |
SwiftCode | Yes | NVARCHAR (20) | The SWIFT Code is an identifier of a Bank |
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
Bank
- Physical column name: C_Bank_ID
- Property Name: id
- Reference: ID
Bank Code
- Physical column name: Codebank
- Property Name: bankCode
- Reference: String
Branch Code
- Physical column name: Codebranch
- Property Name: branchCode
- 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)
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Control Digit
- Physical column name: Digitcontrol
- Property Name: controlDigit
- Reference: String
Country
- Physical column name: C_Country_ID
- Property Name: country
- Reference: TableDir
Foreign key column to C_Country table, (column: C_Country_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
INE No.
- Physical column name: INE_Number
- Property Name: iNENo
- 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)
Name
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Own Bank
- Physical column name: IsOwnBank
- Property Name: ownBank
- Reference: YesNo
- Default value: Y
Routing No
- Physical column name: RoutingNo
- Property Name: routingNo
- Reference: String
Swift code
- Physical column name: SwiftCode
- Property Name: swiftCode
- Reference: String
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
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')
![]() | Back to org.openbravo.model.common.bank |