ERP/2.50/Developers Guide/Database Model/org.openbravo.model.common.bank/C BankAccount
C_BankAccount
Used to define one or more accounts for a Bank. Each account has a unique Account No and Currency.
- Name:BankAccount
- Classname:BankAccount
This table contains the following columns:
Name | Nullable | Data Type | Description |
C_BankAccount_ID | N | VARCHAR2(32) | A monetary account of funds held in a recognized banking institution. |
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_Bank_ID | N | VARCHAR2(32) | Bank |
C_Currency_ID | N | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
BankAccountType | N | VARCHAR2(60) | Bank Account Type |
AccountNo | Y | NVARCHAR2(20) | Account Number |
CurrentBalance | N | NUMBER | Current Balance |
CreditLimit | N | NUMBER | Amount of Credit allowed |
IsDefault | N | CHAR(1) | A value that is shown whenever a record is created. |
Codeaccount | Y | NVARCHAR2(10) | Code of the account |
Digitcontrol | Y | NVARCHAR2(1) | Digit control |
Iban | Y | NVARCHAR2(34) | International standard for identifying bank accounts across national borders |
GenericAccount | Y | NVARCHAR2(50) | Number of the bank account, in a generic format. Usefull if the bank does not use nor IBAN nor our country bank account number's structure |
ShowGeneric | Y | CHAR(1) | Show Generic |
ShowSpanish | Y | CHAR(1) | Show Spanish |
ShowIBAN | Y | CHAR(1) | Show IBAN |
DisplayedAccount | Y | NVARCHAR2(50) | Text that will identify this bank account |
Other Info
Check constraints
These are the check constraints for this table:
- C_BANKACCOUNT_ACCOUNTNO_CHECK: ((GENERICACCOUNT IS NOT NULL) OR (IBAN IS NOT NULL)) OR ((CODEACCOUNT IS NOT NULL) AND (DIGITCONTROL IS NOT NULL))
- C_BANKACCOUNT_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- C_BANKACC_SHOWGENERIC_CHECK: (GENERICACCOUNT IS NOT NULL) OR (SHOWGENERIC = 'N')
- C_BANKACC_SHOWIBAN_CHECK: (IBAN IS NOT NULL) OR (SHOWIBAN = 'N')
- C_BANKACC_SHOWONE_CHECK: ((((SHOWSPANISH = 'Y') AND (SHOWGENERIC = 'N')) AND (SHOWIBAN = 'N')) OR (((SHOWSPANISH = 'N') AND (SHOWGENERIC = 'Y')) AND (SHOWIBAN = 'N'))) OR (((SHOWSPANISH = 'N') AND (SHOWGENERIC = 'N')) AND (SHOWIBAN = 'Y'))
- C_BANKACC_SHOWSPANISH_CHECK: ((((DIGITCONTROL IS NOT NULL) AND (CODEACCOUNT IS NOT NULL)) AND (LENGTH((DIGITCONTROL)) = 1)) AND (LENGTH((CODEACCOUNT)) = 10)) OR (((DIGITCONTROL IS NULL) AND (CODEACCOUNT IS NULL)) AND (SHOWSPANISH = 'N'))
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Non Unique
- C_BANKACCT_BANK
Unique
- C_BANKACCOUNT_KEY
Columns
Bank Account
The Bank Account identifies an account at this Bank.
- Physical column name: C_BankAccount_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)
Bank
- Physical column name: C_Bank_ID
- Property Name: bank
- Reference: TableDir
- This column is part of the table's identifier
- This column is a child for a buisiness object (is Parent)
Foreign key column to C_Bank table, (column: C_Bank_ID)
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Account Type
The Bank Account Type field indicates the type of account (savings, checking etc) this account is defined as.
- Physical column name: BankAccountType
- Property Name: accountType
- Reference: List
List values: C_Bank Account Type
The allowed values for this list are:
- C (Checking)
- S (Savings)
Account No.
The Account Number indicates the Number assigned to this account
- Physical column name: AccountNo
- Property Name: accountNo
- Reference: String
Current Balance
The Current Balance field indicates the current balance in this account.
- Physical column name: CurrentBalance
- Property Name: currentBalance
- Reference: Number
Credit Limit
The Credit Limit field indicates the credit limit for this account.
- Physical column name: CreditLimit
- Property Name: creditLimit
- Reference: Number
Default
The Default Checkbox indicates if this record will be used as a default value.
- Physical column name: IsDefault
- Property Name: default
- Reference: YesNo
Partial Account No.
Last ten numbers of the bank account.
- Physical column name: Codeaccount
- Property Name: partialAccountNo
- Reference: String
Control Digit
Tenth number of the bank account.
- Physical column name: Digitcontrol
- Property Name: controlDigit
- Reference: String
IBAN
Code that identifies uniquely one bank account, no matter the country it belongs to. It consists of a ISO 3166-1 alpha-2 country code, followed by two check digits, and up to thirty alphanumeric characters for the domestic bank account number, called the BBAN (Basic Bank Account Number). It is up to each country's national banking community to decide on the length of the BBAN for accounts in that country, but its length must be fixed for any given country.
- Physical column name: Iban
- Property Name: iBAN
- Reference: String
Generic Account
Number of the bank account, in a generic format. Usefull if the bank does not use nor IBAN nor our country bank account number's structure
- Physical column name: GenericAccount
- Property Name: genericAccount
- Reference: String
Show Generic
Show Generic
- Physical column name: ShowGeneric
- Property Name: showGeneric
- Reference: YesNo
Show Spanish
Show Spanish
- Physical column name: ShowSpanish
- Property Name: showSpanish
- Reference: YesNo
Show IBAN
Show IBAN
- Physical column name: ShowIBAN
- Property Name: showIBAN
- Reference: YesNo
Displayed Account
Text that will identify this bank account
- Physical column name: DisplayedAccount
- Property Name: displayedAccount
- Reference: String
- This column is part of the table's identifier
Related tables
Tables that link this table:
- BankAccountAccounts.Bank Account
- BusinessPartner.Bank Account
- BusinessPartner.Transactional Bank Account
- DataImportBankStatement.Bank Account
- FinancialMgmtBankStatement.Bank Account
- FinancialMgmtDebtPayment.Bank Account
- FinancialMgmtDebtPaymentCancelV.Bank Account
- FinancialMgmtDebtPaymentGenerateV.Bank Account
- FinancialMgmtElementValue.Bank Account
- FinancialMgmtPromissoryFormat.Bank Account
- FinancialMgmtRemittance.Bank Account