ERP/2.50/Developers Guide/Reference/Entity Model/FIN Financial Account
FIN_Financial_Account
To the database table (FIN_Financial_Account) of this entity.
Properties
Note:
- Properties marked with a * are part of the Id of the Entity.
- Properties marked with a # are part of the Identifier of the Entity.
Property | Column | Constraints | Type | Description |
id* | Fin_Financial_Account_ID | Mandatory Max Length: 32 | java.lang.String | Financial account used to deposit / withdrawal money such as bank accounts or petty cash |
client | AD_Client_ID | Mandatory | ADClient | A Client is a company or a legal entity. You cannot share data between Clients. |
organization | AD_Org_ID | Mandatory | Organization | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
creationDate | Created | Mandatory | java.util.Date | The Created field indicates the date that this record was created. |
createdBy | Createdby | Mandatory | ADUser | The Created By field indicates the user who created this record. |
updated | Updated | Mandatory | java.util.Date | The Updated field indicates the date that this record was updated. |
updatedBy | Updatedby | Mandatory | ADUser | The Updated By field indicates the user who updated this record. |
active | Isactive | java.lang.Boolean | 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. | |
currency# | C_Currency_ID | Mandatory | Currency | Indicates the currency to be used when processing this document. |
name# | Name | Mandatory Max Length: 60 | java.lang.String | 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. |
description | Description | Max Length: 255 | java.lang.String | A description is limited to 255 characters. |
type | Type | Mandatory Max Length: 60 | java.lang.String | The Type indicates the type of validation that will occur. This can be SQL, Java Script or Java Language. |
businessPartner | C_Bpartner_ID | BusinessPartner | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. | |
locationAddress | C_Location_ID | Location | The Location / Address field defines the location of an entity. | |
routingNo | Routingno | Max Length: 20 | java.lang.String | The Bank Routing Number (ABA Number) identifies a legal Bank. It is used in routing checks and electronic transactions. |
swiftCode | Swiftcode | Max Length: 20 | java.lang.String | The SWIFT code is an identifier of a Bank |
bankCode | Codebank | Max Length: 4 | java.lang.String | First four numbers of the bank account number which identifies the bank uniquely. |
branchCode | Codebranch | Max Length: 4 | java.lang.String | Second group of four numbers of the bank account which identifies the branch uniquely. |
bankDigitcontrol | Bank_Digitcontrol | Max Length: 1 | java.lang.String | Tenth number of the bank account. |
iNENo | INE_Number | Max Length: 9 | java.lang.String | Number provided by the bank to configurate remittances. |
accountDigitcontrol | Account_Digitcontrol | Max Length: 1 | java.lang.String | |
partialAccountNo | Codeaccount | Max Length: 10 | java.lang.String | Last ten numbers of the bank account. |
accountNo | Accountno | Max Length: 20 | java.lang.String | The Account Number indicates the Number assigned to this account |
currentBalance | Currentbalance | Mandatory | java.math.BigDecimal | The Current Balance field indicates the current balance in this account. |
initialBalance | InitialBalance | Mandatory | java.math.BigDecimal | Amount of the account at the time of registering the financial account. This amount is used to initialize financial account and will be used as last reconciliation amount for first reconciliation in OB for the given financial account. |
creditLimit | Creditlimit | Mandatory | java.math.BigDecimal | The Credit Limit field indicates the credit limit for this account. |
iBAN | Iban | Max Length: 34 | java.lang.String | 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. |
default | Isdefault | Mandatory | java.lang.Boolean | The Default Checkbox indicates if this record will be used as a default value. |
matchingAlgorithm | FIN_Matching_Algorithm_ID | FinancialMgmtMatchingAlgorithm | Identifies the algorithm used to match the imported bank statement lines | |
financialMgmtFinAccPaymentMethodList | List of FinancialMgmtFinAccPaymentMethod | |||
fINReconciliationList | List of FIN_Reconciliation | |||
fINFinancialAccountAcctList | List of FIN_Financial_Account_Acct | |||
fINBankStatementList | List of FIN_BankStatement | |||
fINFinaccTransactionList | List of FIN_Finacc_Transaction |
Java Entity Class
/* ************************************************************************* * The contents of this file are subject to the Openbravo Public License * Version 1.1 (the "License"), being the Mozilla Public License * Version 1.1 with a permitted attribution clause; you may not use this * file except in compliance with the License. You may obtain a copy of * the License at http://www.openbravo.com/legal/license.html * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations * under the License. * The Original Code is Openbravo ERP. * The Initial Developer of the Original Code is Openbravo SLU * All portions are Copyright (C) 2008-2010 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ */ package org.openbravo.model.financialmgmt.payment; import org.openbravo.base.structure.ActiveEnabled; import org.openbravo.base.structure.BaseOBObject; import org.openbravo.base.structure.ClientEnabled; import org.openbravo.base.structure.OrganizationEnabled; import org.openbravo.base.structure.Traceable; import org.openbravo.model.ad.access.User; import org.openbravo.model.ad.system.Client; import org.openbravo.model.common.businesspartner.BusinessPartner; import org.openbravo.model.common.currency.Currency; import org.openbravo.model.common.enterprise.Organization; import org.openbravo.model.common.geography.Location; import java.lang.Boolean; import java.lang.String; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * Entity class for entity FIN_Financial_Account (stored in table FIN_Financial_Account). * * NOTE: This class should not be instantiated directly. To instantiate this * class the {@link org.openbravo.base.provider.OBProvider} should be used. */ public class FIN_FinancialAccount extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled { private static final long serialVersionUID = 1L; public static final String TABLE_NAME = "FIN_Financial_Account"; public static final String FIN_Financial_Account = "FIN_Financial_Account"; public static final String PROPERTY_ID = "id"; public static final String PROPERTY_CLIENT = "client"; public static final String PROPERTY_ORGANIZATION = "organization"; public static final String PROPERTY_CREATIONDATE = "creationDate"; public static final String PROPERTY_CREATEDBY = "createdBy"; public static final String PROPERTY_UPDATED = "updated"; public static final String PROPERTY_UPDATEDBY = "updatedBy"; public static final String PROPERTY_ACTIVE = "active"; public static final String PROPERTY_CURRENCY = "currency"; public static final String PROPERTY_NAME = "name"; public static final String PROPERTY_DESCRIPTION = "description"; public static final String PROPERTY_TYPE = "type"; public static final String PROPERTY_BUSINESSPARTNER = "businessPartner"; public static final String PROPERTY_LOCATIONADDRESS = "locationAddress"; public static final String PROPERTY_ROUTINGNO = "routingNo"; public static final String PROPERTY_SWIFTCODE = "swiftCode"; public static final String PROPERTY_BANKCODE = "bankCode"; public static final String PROPERTY_BRANCHCODE = "branchCode"; public static final String PROPERTY_BANKDIGITCONTROL = "bankDigitcontrol"; public static final String PROPERTY_INENO = "iNENo"; public static final String PROPERTY_ACCOUNTDIGITCONTROL = "accountDigitcontrol"; public static final String PROPERTY_PARTIALACCOUNTNO = "partialAccountNo"; public static final String PROPERTY_ACCOUNTNO = "accountNo"; public static final String PROPERTY_CURRENTBALANCE = "currentBalance"; public static final String PROPERTY_INITIALBALANCE = "initialBalance"; public static final String PROPERTY_CREDITLIMIT = "creditLimit"; public static final String PROPERTY_IBAN = "iBAN"; public static final String PROPERTY_DEFAULT = "default"; public static final String PROPERTY_MATCHINGALGORITHM = "matchingAlgorithm"; public static final String PROPERTY_FINANCIALMGMTFINACCPAYMENTMETHODLIST = "financialMgmtFinAccPaymentMethodList"; public static final String PROPERTY_FINRECONCILIATIONLIST = "fINReconciliationList"; public static final String PROPERTY_FINFINANCIALACCOUNTACCTLIST = "fINFinancialAccountAcctList"; public static final String PROPERTY_FINBANKSTATEMENTLIST = "fINBankStatementList"; public static final String PROPERTY_FINFINACCTRANSACTIONLIST = "fINFinaccTransactionList"; public FIN_FinancialAccount() { setDefaultValue(PROPERTY_CREATIONDATE, new Date()); setDefaultValue(PROPERTY_UPDATED, new Date()); setDefaultValue(PROPERTY_ACTIVE, true); setDefaultValue(PROPERTY_TYPE, "B"); setDefaultValue(PROPERTY_CURRENTBALANCE, new BigDecimal(0)); setDefaultValue(PROPERTY_INITIALBALANCE, new BigDecimal(0)); setDefaultValue(PROPERTY_CREDITLIMIT, new BigDecimal(0)); setDefaultValue(PROPERTY_DEFAULT, false); setDefaultValue(PROPERTY_FINANCIALMGMTFINACCPAYMENTMETHODLIST, new ArrayList<Object>()); setDefaultValue(PROPERTY_FINRECONCILIATIONLIST, new ArrayList<Object>()); setDefaultValue(PROPERTY_FINFINANCIALACCOUNTACCTLIST, new ArrayList<Object>()); setDefaultValue(PROPERTY_FINBANKSTATEMENTLIST, new ArrayList<Object>()); setDefaultValue(PROPERTY_FINFINACCTRANSACTIONLIST, new ArrayList<Object>()); } @Override public String getEntityName() { return FIN_Financial_Account; } public String getId() { return (String) get(PROPERTY_ID); } public void setId(String id) { set(PROPERTY_ID, id); } public Client getClient() { return (Client) get(PROPERTY_CLIENT); } public void setClient(Client client) { set(PROPERTY_CLIENT, client); } public Organization getOrganization() { return (Organization) get(PROPERTY_ORGANIZATION); } public void setOrganization(Organization organization) { set(PROPERTY_ORGANIZATION, organization); } public Date getCreationDate() { return (Date) get(PROPERTY_CREATIONDATE); } public void setCreationDate(Date creationDate) { set(PROPERTY_CREATIONDATE, creationDate); } public User getCreatedBy() { return (User) get(PROPERTY_CREATEDBY); } public void setCreatedBy(User createdBy) { set(PROPERTY_CREATEDBY, createdBy); } public Date getUpdated() { return (Date) get(PROPERTY_UPDATED); } public void setUpdated(Date updated) { set(PROPERTY_UPDATED, updated); } public User getUpdatedBy() { return (User) get(PROPERTY_UPDATEDBY); } public void setUpdatedBy(User updatedBy) { set(PROPERTY_UPDATEDBY, updatedBy); } public Boolean isActive() { return (Boolean) get(PROPERTY_ACTIVE); } public void setActive(Boolean active) { set(PROPERTY_ACTIVE, active); } public Currency getCurrency() { return (Currency) get(PROPERTY_CURRENCY); } public void setCurrency(Currency currency) { set(PROPERTY_CURRENCY, currency); } public String getName() { return (String) get(PROPERTY_NAME); } public void setName(String name) { set(PROPERTY_NAME, name); } public String getDescription() { return (String) get(PROPERTY_DESCRIPTION); } public void setDescription(String description) { set(PROPERTY_DESCRIPTION, description); } public String getType() { return (String) get(PROPERTY_TYPE); } public void setType(String type) { set(PROPERTY_TYPE, type); } public BusinessPartner getBusinessPartner() { return (BusinessPartner) get(PROPERTY_BUSINESSPARTNER); } public void setBusinessPartner(BusinessPartner businessPartner) { set(PROPERTY_BUSINESSPARTNER, businessPartner); } public Location getLocationAddress() { return (Location) get(PROPERTY_LOCATIONADDRESS); } public void setLocationAddress(Location locationAddress) { set(PROPERTY_LOCATIONADDRESS, locationAddress); } public String getRoutingNo() { return (String) get(PROPERTY_ROUTINGNO); } public void setRoutingNo(String routingNo) { set(PROPERTY_ROUTINGNO, routingNo); } public String getSwiftCode() { return (String) get(PROPERTY_SWIFTCODE); } public void setSwiftCode(String swiftCode) { set(PROPERTY_SWIFTCODE, swiftCode); } public String getBankCode() { return (String) get(PROPERTY_BANKCODE); } public void setBankCode(String bankCode) { set(PROPERTY_BANKCODE, bankCode); } public String getBranchCode() { return (String) get(PROPERTY_BRANCHCODE); } public void setBranchCode(String branchCode) { set(PROPERTY_BRANCHCODE, branchCode); } public String getBankDigitcontrol() { return (String) get(PROPERTY_BANKDIGITCONTROL); } public void setBankDigitcontrol(String bankDigitcontrol) { set(PROPERTY_BANKDIGITCONTROL, bankDigitcontrol); } public String getINENo() { return (String) get(PROPERTY_INENO); } public void setINENo(String iNENo) { set(PROPERTY_INENO, iNENo); } public String getAccountDigitcontrol() { return (String) get(PROPERTY_ACCOUNTDIGITCONTROL); } public void setAccountDigitcontrol(String accountDigitcontrol) { set(PROPERTY_ACCOUNTDIGITCONTROL, accountDigitcontrol); } public String getPartialAccountNo() { return (String) get(PROPERTY_PARTIALACCOUNTNO); } public void setPartialAccountNo(String partialAccountNo) { set(PROPERTY_PARTIALACCOUNTNO, partialAccountNo); } public String getAccountNo() { return (String) get(PROPERTY_ACCOUNTNO); } public void setAccountNo(String accountNo) { set(PROPERTY_ACCOUNTNO, accountNo); } public BigDecimal getCurrentBalance() { return (BigDecimal) get(PROPERTY_CURRENTBALANCE); } public void setCurrentBalance(BigDecimal currentBalance) { set(PROPERTY_CURRENTBALANCE, currentBalance); } public BigDecimal getInitialBalance() { return (BigDecimal) get(PROPERTY_INITIALBALANCE); } public void setInitialBalance(BigDecimal initialBalance) { set(PROPERTY_INITIALBALANCE, initialBalance); } public BigDecimal getCreditLimit() { return (BigDecimal) get(PROPERTY_CREDITLIMIT); } public void setCreditLimit(BigDecimal creditLimit) { set(PROPERTY_CREDITLIMIT, creditLimit); } public String getIBAN() { return (String) get(PROPERTY_IBAN); } public void setIBAN(String iBAN) { set(PROPERTY_IBAN, iBAN); } public Boolean isDefault() { return (Boolean) get(PROPERTY_DEFAULT); } public void setDefault(Boolean deflt) { set(PROPERTY_DEFAULT, deflt); } public MatchingAlgorithm getMatchingAlgorithm() { return (MatchingAlgorithm) get(PROPERTY_MATCHINGALGORITHM); } public void setMatchingAlgorithm(MatchingAlgorithm matchingAlgorithm) { set(PROPERTY_MATCHINGALGORITHM, matchingAlgorithm); } @SuppressWarnings("unchecked") public List<FinAccPaymentMethod> getFinancialMgmtFinAccPaymentMethodList() { return (List<FinAccPaymentMethod>) get(PROPERTY_FINANCIALMGMTFINACCPAYMENTMETHODLIST); } public void setFinancialMgmtFinAccPaymentMethodList( List<FinAccPaymentMethod> financialMgmtFinAccPaymentMethodList) { set(PROPERTY_FINANCIALMGMTFINACCPAYMENTMETHODLIST, financialMgmtFinAccPaymentMethodList); } @SuppressWarnings("unchecked") public List<org.openbravo.model.financialmgmt.payment.FIN_Reconciliation> getFINReconciliationList() { return (List<org.openbravo.model.financialmgmt.payment.FIN_Reconciliation>) get(PROPERTY_FINRECONCILIATIONLIST); } public void setFINReconciliationList( List<org.openbravo.model.financialmgmt.payment.FIN_Reconciliation> fINReconciliationList) { set(PROPERTY_FINRECONCILIATIONLIST, fINReconciliationList); } @SuppressWarnings("unchecked") public List<org.openbravo.model.financialmgmt.accounting.FIN_FinancialAccountAccounting> getFINFinancialAccountAcctList() { return (List<org.openbravo.model.financialmgmt.accounting.FIN_FinancialAccountAccounting>) get(PROPERTY_FINFINANCIALACCOUNTACCTLIST); } public void setFINFinancialAccountAcctList( List<org.openbravo.model.financialmgmt.accounting.FIN_FinancialAccountAccounting> fINFinancialAccountAcctList) { set(PROPERTY_FINFINANCIALACCOUNTACCTLIST, fINFinancialAccountAcctList); } @SuppressWarnings("unchecked") public List<org.openbravo.model.financialmgmt.payment.FIN_BankStatement> getFINBankStatementList() { return (List<org.openbravo.model.financialmgmt.payment.FIN_BankStatement>) get(PROPERTY_FINBANKSTATEMENTLIST); } public void setFINBankStatementList( List<org.openbravo.model.financialmgmt.payment.FIN_BankStatement> fINBankStatementList) { set(PROPERTY_FINBANKSTATEMENTLIST, fINBankStatementList); } @SuppressWarnings("unchecked") public List<org.openbravo.model.financialmgmt.payment.FIN_FinaccTransaction> getFINFinaccTransactionList() { return (List<org.openbravo.model.financialmgmt.payment.FIN_FinaccTransaction>) get(PROPERTY_FINFINACCTRANSACTIONLIST); } public void setFINFinaccTransactionList( List<org.openbravo.model.financialmgmt.payment.FIN_FinaccTransaction> fINFinaccTransactionList) { set(PROPERTY_FINFINACCTRANSACTIONLIST, fINFinaccTransactionList); } }