ERP/3.0/Developers Guide/Database Model/org.openbravo.model.timeandexpense/S TimeExpense
S_TimeExpense
- Name:S_TimeExpense
- Classname:TimeAndExpenseSheet
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. |
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. |
A_Asset_ID | Yes | VARCHAR (32) | Any item of economic value owned by the corporation, especially that which could be converted to cash. |
C_BPartner_ID | No | 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. |
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. |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
DocumentNo | No | NVARCHAR (30) | The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order). |
S_TimeExpense_ID | No | VARCHAR (32) | The ID identifies a unique record for the expense report |
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. |
Posted | No | VARCHAR (60) | An accounting status button that indicates if the transaction has already been posted to the general ledger or not. When doing the accounting manually this button can be used to post or unpost the transaction from the general ledger by hand. |
M_Pricelist_ID | Yes | VARCHAR (32) |
Price Lists are used to determine the pricing, margin and cost of items purchased or sold. |
Processing | Yes | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
Processed | No | VARCHAR (60) | The Processed checkbox indicates that a document has been processed. |
C_Project_ID | Yes | VARCHAR (32) | Identifier of a project defined within the Project & Service Management module. |
DateReport | No | TIMESTAMP (7) | Date of Expense/Time Report |
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. |
M_Warehouse_ID | Yes | VARCHAR (32) | The Warehouse identifies a unique Warehouse where products are stored or Services are provided. |
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)
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
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)
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Table
- This column is part of the table's identifier
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)
Cost Center
- 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
Description
- Physical column name: Description
- Property Name: description
- Reference: String
Document No.
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Expense Sheet
- Physical column name: S_TimeExpense_ID
- Property Name: id
- Reference: ID
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Posted
- Physical column name: Posted
- Property Name: posted
- Reference: List
- Default value: N
List values: All_Posted Status
The allowed values for this list are:
- N (Post)
- Y (Unpost)
- b (Post: Not Balanced)
- c (Post: Not Convertible (no rate))
- p (Post: Period Closed)
- y (Post: Post Prepared)
- i (Post: Invalid Account)
- E (Post: Error)
- NC (Post: Cost Not Calculated)
- AD (Post: No Accounting Date)
- T (Post: Table Disabled)
- C (Post: Error, No cost)
- d (Post: Disabled For Background)
- L (Post: Document Locked)
- NO (Post: No Related PO)
- D (Post: Document Disabled): Document disabled for accounting
Price List
- Physical column name: M_Pricelist_ID
- Property Name: priceList
- Reference: TableDir
Foreign key column to M_PriceList table, (column: M_PriceList_ID)
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: YesNo
Processed
- Physical column name: Processed
- Property Name: processed
- Reference: List
- Default value: N
List values: All_Processed_Status_Expenses
The allowed values for this list are:
- N (Process Expenses)
- Y (Unprocess Expenses)
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: Search
Foreign key column to C_Project table, (column: C_Project_ID)
Report Date
- Physical column name: DateReport
- Property Name: reportDate
- Reference: Date
- This column is part of the table's identifier
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)
Warehouse
- Physical column name: M_Warehouse_ID
- Property Name: warehouse
- Reference: TableDir
Foreign key column to M_Warehouse table, (column: M_Warehouse_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):
- S_TIMEEXPENSE_POSTED Not Unique. Columns:
- POSTED
Check Constraints
These are the check constraints for this table:
- S_TIMEEXPENSE_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- S_TIMEEXPENSE_PROCESSED_CHK: PROCESSED IN ('Y', 'N')