src-db/database/model/views/M_INOUT_HEADER_V.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 M_INOUT_HEADER_V">
     2   <database name="VIEW M_INOUT_HEADER_V">
     3     <view name="M_INOUT_HEADER_V"><![CDATA[SELECT io.ad_client_id, io.ad_org_id, io.isactive, io.created, io.createdby, io.updated, io.updatedby, to_char('en_US') AS ad_language, io.m_inout_id, io.issotrx, io.documentno, io.docstatus, io.c_doctype_id, io.c_bpartner_id, bp.value AS bpvalue, oi.c_location_id AS org_location_id, oi.taxid, io.m_warehouse_id, wh.c_location_id AS warehouse_location_id, dt.printname AS documenttype, dt.documentnote AS documenttypenote, io.c_order_id, io.movementdate, io.movementtype, 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, io.description, io.poreference, io.dateordered, io.m_shipper_id, io.deliveryrule, io.deliveryviarule, io.priorityrule
     3     <view name="M_INOUT_HEADER_V"><![CDATA[SELECT io.ad_client_id, io.ad_org_id, io.isactive, io.created, io.createdby,  io.updated, io.updatedby, to_char('en_US') AS ad_language,  io.m_inout_id, io.issotrx, io.documentno, io.docstatus, io.c_doctype_id,  io.c_bpartner_id, bp.value AS bpvalue, oi.c_location_id AS org_location_id,  oi.taxid, io.m_warehouse_id, wh.c_location_id AS warehouse_location_id,  dt.printname AS documenttype, dt.documentnote AS documenttypenote,  io.c_order_id, io.movementdate, io.movementtype, 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, io.description, io.poreference, io.dateordered,  io.m_shipper_id, io.deliveryrule, io.deliveryviarule, io.priorityrule FROM m_inout io JOIN c_doctype dt ON io.c_doctype_id = dt.c_doctype_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id LEFT JOIN c_greeting bpg ON bp.c_greeting_id = bpg.c_greeting_id JOIN c_bpartner_location bpl ON io.c_bpartner_location_id = bpl.c_bpartner_location_id LEFT JOIN ad_user bpc ON io.ad_user_id = bpc.ad_user_id LEFT JOIN c_greeting bpcg ON bpc.c_greeting_id = bpcg.c_greeting_id JOIN ad_orginfo oi ON io.ad_org_id = oi.ad_org_id JOIN m_warehouse wh ON io.m_warehouse_id = wh.m_warehouse_id]]></view>
     4 FROM m_inout io
       
     5 JOIN c_doctype dt ON io.c_doctype_id = dt.c_doctype_id
       
     6 JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id
       
     7 LEFT JOIN c_greeting bpg ON bp.c_greeting_id = bpg.c_greeting_id
       
     8 JOIN c_bpartner_location bpl ON io.c_bpartner_location_id = bpl.c_bpartner_location_id
       
     9 LEFT JOIN ad_user bpc ON io.ad_user_id = bpc.ad_user_id
       
    10 LEFT JOIN c_greeting bpcg ON bpc.c_greeting_id = bpcg.c_greeting_id
       
    11 JOIN ad_orginfo oi ON io.ad_org_id = oi.ad_org_id
       
    12 JOIN m_warehouse wh ON io.m_warehouse_id = wh.m_warehouse_id]]></view>
       
    13   </database>
     4   </database>