src-db/database/model/views/S_TIMEEXPENSELINE_V.xml
author Antonio Moreno <antonio.moreno@openbravo.com>
Wed, 14 Apr 2010 11:56:39 +0200
changeset 7031 2aac4501bbd5
parent 7022 825f121b6164
child 9910 6767429386d8
permissions -rw-r--r--
Related to issue 12786. Slightly modified views so that they don't change in Oracle too.
<?xml version="1.0"?>
  <database name="VIEW S_TIMEEXPENSELINE_V">
    <view name="S_TIMEEXPENSELINE_V"><![CDATA[SELECT tel.s_timeexpenseline_id, tel.ad_client_id, tel.ad_org_id, tel.isactive, tel.created, tel.createdby, tel.updated, tel.updatedby, tel.s_timeexpense_id, tel.line, tel.istimereport, te.datereport, tel.m_product_id, tel.qty, tel.expenseamt, tel.c_currency_id, tel.convertedamt, tel.s_resourceassignment_id, tel.description, tel.note, tel.isinvoiced, tel.c_project_id, tel.c_activity_id, tel.c_campaign_id, tel.c_invoiceline_id, tel.invoiceprice, tel.c_uom_id, tel.c_orderline_id, tel.c_projectphase_id, tel.c_projecttask_id, tel.s_timetype_id, te.c_bpartner_id, tel.dateexpense, tel.c_bpartner_id AS tel_c_bpartner_id
FROM s_timeexpenseline tel
JOIN s_timeexpense te ON tel.s_timeexpense_id = te.s_timeexpense_id
WHERE tel.qty <> 0 AND tel.c_invoiceline_id IS NULL AND te.processed = 'Y' AND tel.isactive = 'Y' AND te.isactive = 'Y' AND tel.istimereport <> 'Y']]></view>
  </database>