ERP/3.0/Developers Guide/Database Model/org.openbravo.model.financialmgmt.accounting/C BudgetLine
C_BudgetLine
- Name:C_BudgetLine
- Classname:FinancialMgmtBudgetLine
This table contains the following columns:
Name | Nullable | Data Type | Description
|
User1_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
User2_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
C_ELEMENTVALUE_ID | No | VARCHAR (32) | Account Elements can be natural accounts or user defined values. |
C_Acctschema_ID | No | VARCHAR (32) | The book containing all financial transactions recorded for the legal entity. |
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_Activity_ID | Yes | VARCHAR (32) | Activities indicate tasks that are performed and used to utilize Activity based Costing |
Actualamt | Yes | DECIMAL | Actual amount indicates the agreed upon amount for a document. |
Amount | Yes | DECIMAL | The Amount indicates the amount for this document line. |
A_Asset_ID | Yes | VARCHAR (32) | Any item of economic value owned by the corporation, especially that which could be converted to cash. |
C_Budget_ID | Yes | VARCHAR (32) | Used to define the anticipated costs of doing business |
C_Budgetline_ID | No | VARCHAR (32) | The ID identifies a unique record |
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. |
C_BP_Group_ID | Yes | VARCHAR (32) | A way of grouping business partners together for classification and reporting purposes. Provides a method of defining certain defaults to be used when opening new business partners. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
C_Costcenter_ID | Yes | VARCHAR (32) | Division that adds to the cost of an organization. Internal structure for cost allocation. |
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. |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
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. |
C_Period_ID | Yes | VARCHAR (32) | The Period indicates an exclusive range of dates for a calendar. |
Price | Yes | DECIMAL | The Price indicates the Price for a product or service. |
M_Product_ID | Yes | VARCHAR (32) | Identifies an item which is either purchased or sold in this organization. |
M_Product_Category_ID | Yes | VARCHAR (32) | Identifies the category which this product belongs to. Product categories are used for pricing. |
C_Project_ID | Yes | VARCHAR (32) | Identifier of a project defined within the Project & Service Management module. |
Qty | Yes | DECIMAL | The Quantity indicates the number of a specific product or item for this document. |
C_Campaign_ID | Yes | VARCHAR (32) | The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign. |
C_SalesRegion_ID | Yes | VARCHAR (32) | The Sales Region indicates a specific area of sales coverage. |
SeqNo | No | DECIMAL (10,0) | The Sequence indicates the order of records |
AD_OrgTrx_ID | Yes | VARCHAR (32) | The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions. |
C_UOM_ID | Yes | VARCHAR (32) | The UOM defines a unique non monetary unit of measure |
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
1st Dimension
- Physical column name: User1_ID
- Property Name: stDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User1 table, (column: User1_ID)
2nd Dimension
- Physical column name: User2_ID
- Property Name: ndDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User2 table, (column: User2_ID)
Account Element
- Physical column name: C_ELEMENTVALUE_ID
- Property Name: accountElement
- Reference: OBUISEL_Selector Reference
Foreign key column to C_ElementValue table, (column: C_ElementValue_ID)
It has a validation "C_ELEMENTVALUE SUBACCOUNTS", with the following code
C_ELEMENTVALUE.ELEMENTLEVEL='S'
Accounting Schema
- Physical column name: C_Acctschema_ID
- Property Name: accountingSchema
- Reference: TableDir
Foreign key column to C_AcctSchema table, (column: C_AcctSchema_ID)
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Activity table, (column: C_Activity_ID)
Actual Amount
- Physical column name: Actualamt
- Property Name: actualAmount
- Reference: Amount
Amount
- Physical column name: Amount
- Property Name: amount
- Reference: Amount
Asset
- Physical column name: A_Asset_ID
- Property Name: asset
- Reference: OBUISEL_Selector Reference
Foreign key column to A_Asset table, (column: A_Asset_ID)
Budget
- Physical column name: C_Budget_ID
- Property Name: budget
- Reference: TableDir
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to C_Budget table, (column: C_Budget_ID)
Budget Line
- Physical column name: C_Budgetline_ID
- Property Name: id
- Reference: ID
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Business Partner Category
- Physical column name: C_BP_Group_ID
- Property Name: businessPartnerCategory
- Reference: TableDir
Foreign key column to C_BP_Group table, (column: C_BP_Group_ID)
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Costcenter
- Physical column name: C_Costcenter_ID
- Property Name: costcenter
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Costcenter table, (column: C_Costcenter_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
Foreign key column to C_Currency table, (column: C_Currency_ID)
Description
- Physical column name: Description
- Property Name: description
- Reference: Text
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
It has a validation "AD_Org show child organizations", with the following code
AD_ISORGINCLUDED(ad_org.ad_org_id, CASE WHEN (@Parent_AD_Org@ IS NULL OR @Parent_AD_Org@ = ) THEN @AD_ORG_ID@ ELSE @Parent_AD_Org@ END, ad_org.ad_client_id)<>-1 AND IsReady='Y'
Period
- Physical column name: C_Period_ID
- Property Name: period
- Reference: Table
- This column is part of the table's identifier
Foreign key column to C_Period table, (column: C_Period_ID)
It has a validation "C_Period_ID of selected year", with the following code
C_Period.C_Year_ID IN (SELECT C_Budget.C_Year_ID FROM C_Budget WHERE C_Budget.C_Budget_ID = @C_Budget_ID@)
Price
- Physical column name: Price
- Property Name: price
- Reference: Price
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
Foreign key column to M_Product table, (column: M_Product_ID)
Callout: SL_Budget_Product
This column has a callout associated.
It is implemented by [1] Java Class.
Product Category
- Physical column name: M_Product_Category_ID
- Property Name: productCategory
- Reference: TableDir
Foreign key column to M_Product_Category table, (column: M_Product_Category_ID)
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: Search
Foreign key column to C_Project table, (column: C_Project_ID)
Quantity
- Physical column name: Qty
- Property Name: quantity
- Reference: Quantity
- Default value: 0
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Sales Region
- Physical column name: C_SalesRegion_ID
- Property Name: salesRegion
- Reference: OBUISEL_Selector Reference
Foreign key column to C_SalesRegion table, (column: C_SalesRegion_ID)
Sequence Number
- Physical column name: SeqNo
- Property Name: sequenceNumber
- Reference: Integer
- This column is part of the table's identifier
Trx Organization
- Physical column name: AD_OrgTrx_ID
- Property Name: trxOrganization
- Reference: Table
Foreign key column to AD_Org table, (column: AD_Org_ID)
UOM
- Physical column name: C_UOM_ID
- Property Name: uOM
- Reference: TableDir
Foreign key column to C_UOM table, (column: C_UOM_ID)
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_BUDGETLINE_BUDGET_IDX Not Unique. Columns:
- C_BUDGET_ID
Check Constraints
These are the check constraints for this table:
- C_BUDGETLINE_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')