ERP 2.50:Developers Guide/Database Model/org.openbravo.model.timeandexpense/S TimeExpenseLine V
S_TimeExpenseLine_V
View and modify Time and Expense Report Lines. It lists expense items for the business partner on the expense header where the expense lines were not invoiced yet.
- Name:TimeAndExpenseSheetLineV
- Classname:SheetLineV
This table contains the following columns:
Name | Nullable | Data Type | Description |
S_TimeExpenseLine_ID | N | VARCHAR2(32) | Time and Expense Report Line |
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 |
S_TimeExpense_ID | N | VARCHAR2(32) | A list of billable expenses related to time, travel, and basis business conduct. |
Line | N | NUMBER(10, 0) | A line stating the position of this request in the document. |
IsTimeReport | N | CHAR(1) | An indication that the charge is due to time, not typically justifiable by receipt. |
Datereport | N | DATE | Expense/Time Report Date |
M_Product_ID | Y | VARCHAR2(32) | An item produced by a process. |
Qty | Y | NUMBER | The number of a certain item. |
Expenseamt | Y | NUMBER | Amount for this expense |
C_Currency_ID | Y | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
ConvertedAmt | Y | NUMBER | The monetary sum at which one unit of measure is changed to another. |
S_ResourceAssignment_ID | Y | VARCHAR2(32) | x not implemented |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
Note | Y | NVARCHAR2(255) | A space to write additional related information. |
IsInvoiced | N | CHAR(1) | An indication that a transaction may be invoiced to a business partner. |
C_Project_ID | Y | VARCHAR2(32) | Identifier of a project defined within the Project & Service Management module. |
C_Activity_ID | Y | VARCHAR2(32) | A distinct activity defined and used in activity based management. |
C_Campaign_ID | Y | VARCHAR2(32) | An advertising effort aimed at increasing sales. |
C_InvoiceLine_ID | Y | VARCHAR2(32) | A statement displaying one item or charge in an invoice. |
InvoicePrice | Y | NUMBER | The price at which something may be invoiced, shown in the currency of the invoiced business partner. |
C_UOM_ID | Y | VARCHAR2(32) | A non monetary unit of measure. |
C_OrderLine_ID | Y | VARCHAR2(32) | A unique and often automatically generated identifier for a sales order line. |
C_ProjectPhase_ID | Y | VARCHAR2(32) | A defined section of a project. |
C_ProjectTask_ID | Y | VARCHAR2(32) | A job to be carried out during the phase of a project. |
S_Timetype_ID | Y | VARCHAR2(32) | Type of time recorded |
C_BPartner_ID | N | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
Dateexpense | Y | DATE | Date of expense |
TEL_C_Bpartner_ID | Y | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
Columns
Expense Line
- Physical column name: S_TimeExpenseLine_ID
- Property Name: sheetLine
- Reference: TableDir
Foreign key column to S_TimeExpenseLine table, (column: S_TimeExpenseLine_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)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
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)
Expense Sheet
- Physical column name: S_TimeExpense_ID
- Property Name: expenseSheet
- Reference: Search
Foreign key column to S_TimeExpense table, (column: S_TimeExpense_ID)
Line No.
Indicates the unique line for a document. It will also control the display order of the lines within a document.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
- Default value: @SQL=SELECT COALESCE(MAX(LINE),0)+10 AS DefaultValue FROM S_TIMEEXPENSELINE_V WHERE c_bpartner_id=@c_bpartner_id@
- This column is part of the table's identifier
Time Sheet
The line contains only time information
- Physical column name: IsTimeReport
- Property Name: timeSheet
- Reference: YesNo
Report Date
Date of Expense/Time Report
- Physical column name: Datereport
- Property Name: reportDate
- Reference: Date
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
Foreign key column to M_Product table, (column: M_Product_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
Expense Amount
Expense amount in currency
- Physical column name: Expenseamt
- Property Name: expenseAmount
- Reference: Amount
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Converted Amount
The Converted Amount is the result of multiplying the Source Amount by the Conversion Rate for this target currency.
- Physical column name: ConvertedAmt
- Property Name: convertedAmount
- Reference: Amount
Resource Assignment
- Physical column name: S_ResourceAssignment_ID
- Property Name: resourceAssignment
- Reference: TableDir
Foreign key column to S_ResourceAssignment table, (column: S_ResourceAssignment_ID)
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: Text
Comments
The Note field allows for optional entry of user defined information regarding this record
- Physical column name: Note
- Property Name: comments
- Reference: Text
Re-invoice
Indicator if invoiced
- Physical column name: IsInvoiced
- Property Name: reinvoice
- Reference: YesNo
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: TableDir
Foreign key column to C_Project table, (column: C_Project_ID)
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: TableDir
Foreign key column to C_Activity table, (column: C_Activity_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)
Invoice Line
- Physical column name: C_InvoiceLine_ID
- Property Name: invoiceLine
- Reference: TableDir
Foreign key column to C_InvoiceLine table, (column: C_InvoiceLine_ID)
Invoice Price
Unit Price in the currency of the business partner! If it is 0, the standard price of the sales price list of the business partner (customer) is used.
- Physical column name: InvoicePrice
- Property Name: invoicePrice
- Reference: Price
UOM
- Physical column name: C_UOM_ID
- Property Name: uOM
- Reference: TableDir
Foreign key column to C_UOM table, (column: C_UOM_ID)
Sales Order Line
- Physical column name: C_OrderLine_ID
- Property Name: salesOrderLine
- Reference: TableDir
Foreign key column to C_OrderLine table, (column: C_OrderLine_ID)
Project Phase
- Physical column name: C_ProjectPhase_ID
- Property Name: projectPhase
- Reference: TableDir
Foreign key column to C_ProjectPhase table, (column: C_ProjectPhase_ID)
Project Task
- Physical column name: C_ProjectTask_ID
- Property Name: projectTask
- Reference: TableDir
Foreign key column to C_ProjectTask table, (column: C_ProjectTask_ID)
Time Type
- Physical column name: S_Timetype_ID
- Property Name: timeType
- Reference: TableDir
Foreign key column to S_Timetype table, (column: S_TimeType_ID)
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
- This column is a child for a buisiness object (is Parent)
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Expense Date
Date of expense
- Physical column name: Dateexpense
- Property Name: expenseDate
- Reference: Date
Charged Business Partner
- Physical column name: TEL_C_Bpartner_ID
- Property Name: chargedBusinessPartner
- Reference: Search
Foreign key column to TEL_C_Bpartner table, (column: null)