View source | Discuss this page | Page history | Printable version   

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

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

Index

Contents

S_TimeExpense

Contains the time and expenses for the Employee or Contractor (Business Partner)

This table contains the following columns:

Name Nullable Data Type Description
S_TimeExpense_ID NVARCHAR2(32)A list of billable expenses related to time, travel, and basis business conduct.
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
DocumentNo NNVARCHAR2(30)An often automatically generated identifier for all documents.
C_BPartner_ID NVARCHAR2(32)Identifies an Employee
DateReport NDATEExpense/Time Report Date
Description YNVARCHAR2(255)A space to write additional related information.
Processing YCHAR(1)A request to process the respective document or task.
Processed NVARCHAR2(60)A confirmation that the associated documents or requests are processed.
M_Pricelist_ID YVARCHAR2(32)A catalog of selected items with prices defined generally or for a specific partner.
M_Warehouse_ID YVARCHAR2(32)The location where products arrive to or are sent from.

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 Sheet

The ID identifies a unique record for the expense report

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

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).

top

Employee

A employee is a Business Partner checked as Employee

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)


top

Report Date

Date of Expense/Time Report

top

Description

A description is limited to 255 characters.

top

Process Now

When this field is set as 'Y' a process is being performed on this record.

top

Processed

The Processed checkbox indicates that a document has been processed.

top

Price List

Foreign key column to M_Pricelist table, (column: M_PriceList_ID)

top

Warehouse

Foreign key column to M_Warehouse table, (column: M_Warehouse_ID)

top

Retrieved from "http://wiki.openbravo.com/wiki/ERP_2.50:Developers_Guide/Database_Model/org.openbravo.model.timeandexpense/S_TimeExpense"

This page has been accessed 2,170 times. This page was last modified on 14 June 2011, at 11:04. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.