src-db/database/model/views/C_PROJECT_HEADER_VT.xml
changeset 9910 6767429386d8
parent 7031 2aac4501bbd5
child 9911 444911e2b851
equal deleted inserted replaced
9909:56a1306e07a0 9910:6767429386d8
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="VIEW C_PROJECT_HEADER_VT">
     2   <database name="VIEW C_PROJECT_HEADER_VT">
     3     <view name="C_PROJECT_HEADER_VT"><![CDATA[SELECT p.ad_client_id, p.ad_org_id, p.isactive, p.created, p.createdby, p.updated, p.updatedby, pt.ad_language, p.c_project_id, p.value, p.name AS projectname, p.description, p.note, p.issummary, p.projectcategory, oi.c_location_id AS org_location_id, oi.taxid, p.c_projecttype_id, pjt.name AS projecttypename, p.c_phase_id, pjp.name AS projectphasename, p.salesrep_id, COALESCE(ubp.name, u.name) AS salesrep_name, p.c_bpartner_id, bp.value AS bpvalue, bpg.name AS bpgreeting, bp.name, bp.name2, bpcg.name AS bpcontactgreeting, bpc.title, NULLIF(bpc.name, bp.name) AS contactname, bpl.c_location_id, bp.referenceno, pt.name AS paymentterm, pt.documentnote AS paymenttermnote, p.poreference, p.c_currency_id, p.m_pricelist_version_id, p.c_campaign_id, p.plannedamt, p.plannedqty, p.plannedmarginamt, p.invoicedamt, p.invoicedqty, p.projectbalanceamt, p.iscommitment, p.committedamt, p.committedqty, p.datecontract, p.datefinish, p.iscommitceiling, p.m_warehouse_id
     3     <view name="C_PROJECT_HEADER_VT"><![CDATA[SELECT p.ad_client_id, p.ad_org_id, p.isactive, p.created, p.createdby,  p.updated, p.updatedby, pt.ad_language, p.c_project_id, p.value,  p.name AS projectname, p.description, p.note, p.issummary,  p.projectcategory, oi.c_location_id AS org_location_id, oi.taxid,  p.c_projecttype_id, pjt.name AS projecttypename, p.c_phase_id,  pjp.name AS projectphasename, p.salesrep_id,  COALESCE(ubp.name, u.name) AS salesrep_name, p.c_bpartner_id,  bp.value AS bpvalue, bpg.name AS bpgreeting, bp.name, bp.name2,  bpcg.name AS bpcontactgreeting, bpc.title,  NULLIF(bpc.name, bp.name) AS contactname, bpl.c_location_id,  bp.referenceno, pt.name AS paymentterm, pt.documentnote AS paymenttermnote,  p.poreference, p.c_currency_id, p.m_pricelist_version_id, p.c_campaign_id,  p.plannedamt, p.plannedqty, p.plannedmarginamt, p.invoicedamt,  p.invoicedqty, p.projectbalanceamt, p.iscommitment, p.committedamt,  p.committedqty, p.datecontract, p.datefinish, p.iscommitceiling,  p.m_warehouse_id FROM c_project p LEFT JOIN c_bpartner bp ON p.c_bpartner_id = bp.c_bpartner_id JOIN ad_orginfo oi ON p.ad_org_id = oi.ad_org_id LEFT JOIN c_paymentterm_trl pt ON p.c_paymentterm_id = pt.c_paymentterm_id LEFT JOIN c_projecttype pjt ON p.c_projecttype_id = pjt.c_projecttype_id LEFT JOIN c_phase pjp ON p.c_phase_id = pjp.c_phase_id LEFT JOIN ad_user u ON p.salesrep_id = u.ad_user_id LEFT JOIN c_bpartner ubp ON u.c_bpartner_id = ubp.c_bpartner_id LEFT JOIN c_greeting bpg ON bp.c_greeting_id = bpg.c_greeting_id LEFT JOIN ad_user bpc ON p.ad_user_id = bpc.ad_user_id LEFT JOIN c_greeting bpcg ON bpc.c_greeting_id = bpcg.c_greeting_id LEFT JOIN c_bpartner_location bpl ON p.c_bpartner_location_id = bpl.c_bpartner_location_id]]></view>
     4 FROM c_project p
       
     5 LEFT JOIN c_bpartner bp ON p.c_bpartner_id = bp.c_bpartner_id
       
     6 JOIN ad_orginfo oi ON p.ad_org_id = oi.ad_org_id
       
     7 LEFT JOIN c_paymentterm_trl pt ON p.c_paymentterm_id = pt.c_paymentterm_id
       
     8 LEFT JOIN c_projecttype pjt ON p.c_projecttype_id = pjt.c_projecttype_id
       
     9 LEFT JOIN c_phase pjp ON p.c_phase_id = pjp.c_phase_id
       
    10 LEFT JOIN ad_user u ON p.salesrep_id = u.ad_user_id
       
    11 LEFT JOIN c_bpartner ubp ON u.c_bpartner_id = ubp.c_bpartner_id
       
    12 LEFT JOIN c_greeting bpg ON bp.c_greeting_id = bpg.c_greeting_id
       
    13 LEFT JOIN ad_user bpc ON p.ad_user_id = bpc.ad_user_id
       
    14 LEFT JOIN c_greeting bpcg ON bpc.c_greeting_id = bpcg.c_greeting_id
       
    15 LEFT JOIN c_bpartner_location bpl ON p.c_bpartner_location_id = bpl.c_bpartner_location_id]]></view>
       
    16   </database>
     4   </database>