ERP 2.50:Developers Guide/Database Model/org.openbravo.model.timeandexpense/S TimeExpense
Contents |
S_TimeExpense
Contains the time and expenses for the Employee or Contractor (Business Partner)
- Name:TimeAndExpenseSheet
- Classname:Sheet
This table contains the following columns:
Name | Nullable | Data Type | Description |
S_TimeExpense_ID | N | VARCHAR2(32) | A list of billable expenses related to time, travel, and basis business conduct. |
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 |
DocumentNo | N | NVARCHAR2(30) | An often automatically generated identifier for all documents. |
C_BPartner_ID | N | VARCHAR2(32) | Identifies an Employee |
DateReport | N | DATE | Expense/Time Report Date |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
Processing | Y | CHAR(1) | A request to process the respective document or task. |
Processed | N | VARCHAR2(60) | A confirmation that the associated documents or requests are processed. |
M_Pricelist_ID | Y | VARCHAR2(32) | A catalog of selected items with prices defined generally or for a specific partner. |
M_Warehouse_ID | Y | VARCHAR2(32) | The location where products arrive to or are sent from. |
Other Info
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')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- S_TIMEEXPENSE_KEY
Columns
Expense Sheet
The ID identifies a unique record for the expense report
- Physical column name: S_TimeExpense_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)
Document No.
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).
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Employee
A employee is a Business Partner checked as Employee
- 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)
Reference Table C_BPartner Employee w Address With the following where clause:
C_BPartner.IsEmployee='Y' AND EXISTS (SELECT * FROM C_BPartner_Location l WHERE C_BPartner.C_BPartner_ID=l.C_BPartner_ID AND l.C_Location_ID IS NOT NULL) AND EXISTS (SELECT * FROM AD_User u WHERE C_BPartner.C_BPartner_ID=u.C_BPartner_ID)
Report Date
Date of Expense/Time Report
- Physical column name: DateReport
- Property Name: reportDate
- Reference: Date
- Default value: @#Date@
- This column is part of the table's identifier
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
Process Now
When this field is set as 'Y' a process is being performed on this record.
- Physical column name: Processing
- Property Name: processNow
- Reference: YesNo
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: Button
Price List
- Physical column name: M_Pricelist_ID
- Property Name: priceList
- Reference: TableDir
Foreign key column to M_Pricelist table, (column: M_PriceList_ID)
Warehouse
- Physical column name: M_Warehouse_ID
- Property Name: warehouse
- Reference: TableDir
Foreign key column to M_Warehouse table, (column: M_Warehouse_ID)