View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

ERP/2.50/Developers Guide/Database Model/org.openbravo.model.timeandexpense/S TimeExpenseLine

ERP/2.50/Developers Guide/Database Model/org.openbravo.model.timeandexpense

Index

Contents

S_TimeExpenseLine

Contains all the expense items and billable or non-billable hours

This table contains the following columns:

Name Nullable Data Type Description
S_TimeExpenseLine_ID NVARCHAR2(32)Time and Expense Report Line
AD_Client_ID NVARCHAR2(32)Client for this installation.
AD_Org_ID NVARCHAR2(32)Organizational entity within client
IsActive NCHAR(1)A flag indicating whether this record is available for use or de-activated.
Created NDATEThe date that this record is completed.
CreatedBy NVARCHAR2(32)User who created this records
Updated NDATEx not implemented
UpdatedBy NVARCHAR2(32)User who updated this records
S_TimeExpense_ID NVARCHAR2(32)A list of billable expenses related to time, travel, and basis business conduct.
Line NNUMBER(10, 0)A line stating the position of this request in the document.
IsTimeReport NCHAR(1)An indication that the charge is due to time, not typically justifiable by receipt.
DateExpense YDATEDate of expense
M_Product_ID YVARCHAR2(32)An item produced by a process.
Qty YNUMBERThe number of a certain item.
ExpenseAmt YNUMBERAmount for this expense
C_Currency_ID YVARCHAR2(32)An accepted medium of monetary exchange that may vary across countries.
ConvertedAmt YNUMBERThe monetary sum at which one unit of measure is changed to another.
S_ResourceAssignment_ID YVARCHAR2(32)x not implemented
Description YNVARCHAR2(255)A space to write additional related information.
Note YNVARCHAR2(255)A space to write additional related information.
IsInvoiced NCHAR(1)An indication that a transaction may be invoiced to a business partner.
C_BPartner_ID YVARCHAR2(32)Anyone who takes part in daily business operations by acting as a customer, employee, etc.
C_Project_ID YVARCHAR2(32)Identifier of a project defined within the Project & Service Management module.
C_Activity_ID YVARCHAR2(32)A distinct activity defined and used in activity based management.
C_Campaign_ID YVARCHAR2(32)An advertising effort aimed at increasing sales.
C_InvoiceLine_ID YVARCHAR2(32)A statement displaying one item or charge in an invoice.
InvoicePrice YNUMBERThe price at which something may be invoiced, shown in the currency of the invoiced business partner.
C_UOM_ID YVARCHAR2(32)A non monetary unit of measure.
C_OrderLine_ID YVARCHAR2(32)A unique and often automatically generated identifier for a sales order line.
C_ProjectPhase_ID YVARCHAR2(32)A defined section of a project.
C_ProjectTask_ID YVARCHAR2(32)A job to be carried out during the phase of a project.
S_TimeType_ID YVARCHAR2(32)Type of time recorded

Other Info

Check constraints

These are the check constraints for this table:

top

Indexes

These are the indexes for this table (for each index there is a list of all the columns included within it):

Unique

top

Columns

Expense Line

The ID identifies a unique record

top

Client

Foreign key column to AD_Client table, (column: AD_Client_ID)

top

Organization

Foreign key column to AD_Org table, (column: AD_Org_ID)

top

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.

top

Creation Date

The Created field indicates the date that this record was created.

top

Created By

Foreign key column to AD_User table, (column: AD_User_ID)

top

Updated

The Updated field indicates the date that this record was updated.

top

Updated By

Foreign key column to AD_User table, (column: AD_User_ID)

top

Expense Sheet

Foreign key column to S_TimeExpense table, (column: S_TimeExpense_ID)

top

Line No.

Indicates the unique line for a document. It will also control the display order of the lines within a document.

top

Time Sheet

The line contains only time information

top

Expense Date

Date of expense

Callout: SE_Expense_Amount

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SE_Expense_Amount Java class.

top

Product

Foreign key column to M_Product table, (column: M_Product_ID)


Validation Rule S_Expense product type: null. With the following code:

 
PRODUCTTYPE = (CASE WHEN @ISTIMEREPORT@ IS NULL THEN 'E' WHEN @ISTIMEREPORT@='Y' THEN 'S' ELSE 'E' END)

Callout: SE_Expense_Product

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SE_Expense_Product Java class.

top

Quantity

The Quantity indicates the number of a specific product or item for this document.

Callout: SE_Expense_Product

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SE_Expense_Product Java class.

top

Expense Amount

Expense amount in currency

Callout: SE_Expense_Amount

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SE_Expense_Amount Java class.

top

Currency

Foreign key column to C_Currency table, (column: C_Currency_ID)

Callout: SE_Expense_Amount

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SE_Expense_Amount Java class.

top

Converted Amount

The Converted Amount is the result of multiplying the Source Amount by the Conversion Rate for this target currency.

top

Resource Assignment

The ID identifies a unique record

top

Description

A description is limited to 255 characters.

top

Comments

The Note field allows for optional entry of user defined information regarding this record

top

Reinvoicing

Indicator if invoiced

top

Business Partner

Foreign key column to C_BPartner table, (column: C_BPartner_ID)

Callout: SE_Expense_BP_Project

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SE_Expense_BP_Project Java class.

top

Project

Foreign key column to C_Project table, (column: C_Project_ID)

Callout: SE_Expense_BP_Project

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SE_Expense_BP_Project Java class.

top

Activity

Foreign key column to C_Activity table, (column: C_Activity_ID)

top

Sales Campaign

Foreign key column to C_Campaign table, (column: C_Campaign_ID)

top

Invoice Line

Foreign key column to C_InvoiceLine table, (column: C_InvoiceLine_ID)

top

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.

Callout: SE_Expense_Product

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SE_Expense_Product Java class.

top

UOM

Foreign key column to C_UOM table, (column: C_UOM_ID)

top

Sales Order Line

Foreign key column to C_OrderLine table, (column: C_OrderLine_ID)

top

Project Phase

Foreign key column to C_ProjectPhase table, (column: C_ProjectPhase_ID)


Validation Rule C_ProjectPhase of Project: null. With the following code:

 
C_ProjectPhase.C_Project_ID=@C_Project_ID@

top

Project Task

Foreign key column to C_ProjectTask table, (column: C_ProjectTask_ID)


Validation Rule C_ProjectTask of ProjectPhase: null. With the following code:

 
C_ProjectTask.C_ProjectPhase_ID=@C_ProjectPhase_ID@

top

Time Type

Foreign key column to S_TimeType table, (column: S_TimeType_ID)

top

Related tables

Tables that link this table:

top

Retrieved from "http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Database_Model/org.openbravo.model.timeandexpense/S_TimeExpenseLine"

This page has been accessed 1,416 times. This page was last modified on 2 July 2011, at 21:13. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.