ERP 2.50:Developers Guide/Database Model/org.openbravo.model.financialmgmt.accounting/C BudgetLine
C_BudgetLine
Refers to the lines associated to a budget.
- Name:FinancialMgmtBudgetLine
- Classname:BudgetLine
This table contains the following columns:
Name | Nullable | Data Type | Description |
C_Budgetline_ID | N | VARCHAR2(32) | null |
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_ELEMENTVALUE_ID | Y | VARCHAR2(32) | A identification code for an account type. |
C_Period_ID | Y | VARCHAR2(32) | A specified time period. |
C_Currency_ID | N | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
C_UOM_ID | Y | VARCHAR2(32) | A non monetary unit of measure. |
Qty | Y | NUMBER | The number of a certain item. |
M_Product_ID | Y | VARCHAR2(32) | An item produced by a process. |
C_BPartner_ID | Y | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
AD_OrgTrx_ID | Y | VARCHAR2(32) | The organization which performs or initiates the transaction. |
C_SalesRegion_ID | Y | VARCHAR2(32) | A defined section of the world where sales efforts will be focused. |
C_Project_ID | Y | VARCHAR2(32) | Identifier of a project defined within the Project & Service Management module. |
C_Campaign_ID | Y | VARCHAR2(32) | An advertising effort aimed at increasing sales. |
C_Activity_ID | Y | VARCHAR2(32) | A distinct activity defined and used in activity based management. |
User1_ID | Y | VARCHAR2(32) | A display of optional elements that are previously defined for this account combination. |
User2_ID | Y | VARCHAR2(32) | A display of optional elements that are previously defined for this account combination. |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
SeqNo | N | NUMBER(10, 0) | The order of records in a specified document. |
C_BP_Group_ID | Y | VARCHAR2(32) | A classification of business partners based on defined similarities. |
M_Product_Category_ID | Y | VARCHAR2(32) | A classification of items based on similar characteristics or attributes. |
C_Budget_ID | Y | VARCHAR2(32) | A group of planned expenses for a task. |
Amount | Y | NUMBER | A monetary total. |
Price | Y | NUMBER | The cost or value of a good or service. |
C_Acctschema_ID | Y | VARCHAR2(32) | The structure used in accounting including costing methods, currencies, and the calendar. |
Other Info
Check constraints
These are the check constraints for this table:
- C_BUDGETLINE_ISACTIVE_CHECK: ISACTIVE 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_BUDGETLINE_KEY
Columns
Budget Line
The ID identifies a unique record
- Physical column name: C_Budgetline_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
- Default value: Y
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: @#Date@
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
- Default value: @#Date@
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Account Element
- Physical column name: C_ELEMENTVALUE_ID
- Property Name: accountElement
- Reference: Search
Foreign key column to C_ELEMENTVALUE table, (column: C_ElementValue_ID)
Validation Rule C_ELEMENTVALUE SUBACCOUNTS: null. With the following code:
C_ELEMENTVALUE.ELEMENTLEVEL='S'
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)
Reference Table C_Period (all)
Validation Rule C_Period_ID of selected year: null. 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@)
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
UOM
- Physical column name: C_UOM_ID
- Property Name: uOM
- Reference: TableDir
Foreign key column to C_UOM table, (column: C_UOM_ID)
Quantity
The Quantity indicates the number of a specific product or item for this document.
- Physical column name: Qty
- Property Name: quantity
- Reference: Quantity
- Default value: 0
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 element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Budget_Product Java class.
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Trx Organization
- Physical column name: AD_OrgTrx_ID
- Property Name: trxOrganization
- Reference: Table
Foreign key column to AD_Org table, (column: AD_Org_ID)
Reference Table AD_Org (Trx) With the following where clause:
AD_Org.IsSummary='N' AND AD_Org_ID <> '0'
Sales Region
- Physical column name: C_SalesRegion_ID
- Property Name: salesRegion
- Reference: TableDir
Foreign key column to C_SalesRegion table, (column: C_SalesRegion_ID)
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: TableDir
Foreign key column to C_Project table, (column: C_Project_ID)
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: TableDir
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: TableDir
Foreign key column to C_Activity table, (column: C_Activity_ID)
1st Dimension
The user defined element displays the optional elements that have been defined for this account combination.
- Physical column name: User1_ID
- Property Name: stDimension
- Reference: String
2nd Dimension
The user defined element displays the optional elements that have been defined for this account combination.
- Physical column name: User2_ID
- Property Name: ndDimension
- Reference: String
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: Text
Sequence Number
The Sequence indicates the order of records
- Physical column name: SeqNo
- Property Name: sequenceNumber
- Reference: Integer
- Default value: @SQL=SELECT COALESCE(MAX(SEQNO),0)+10 AS DefaultValue FROM C_BUDGETLINE WHERE C_BUDGET_ID=@C_BUDGET_ID@
- This column is part of the table's identifier
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)
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)
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 buisiness object (is Parent)
Foreign key column to C_Budget table, (column: C_Budget_ID)
Amount
The Amount indicates the amount for this document line.
- Physical column name: Amount
- Property Name: amount
- Reference: Amount
Price
The Price indicates the Price for a product or service.
- Physical column name: Price
- Property Name: price
- Reference: Price
Accounting Schema
- Physical column name: C_Acctschema_ID
- Property Name: accountingSchema
- Reference: TableDir
Foreign key column to C_Acctschema table, (column: C_AcctSchema_ID)
Related tables
Tables that link this table: