src-db/database/model/views/C_PROJECT_HEADER_VT.xml
changeset 9910 6767429386d8
parent 7031 2aac4501bbd5
child 9911 444911e2b851
--- a/src-db/database/model/views/C_PROJECT_HEADER_VT.xml	Thu Jan 24 13:16:12 2013 +0100
+++ b/src-db/database/model/views/C_PROJECT_HEADER_VT.xml	Mon Feb 04 09:27:53 2013 +0100
@@ -1,16 +1,4 @@
 <?xml version="1.0"?>
   <database name="VIEW C_PROJECT_HEADER_VT">
-    <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>
+    <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>
   </database>