Log in / create account
View source | Discuss page | Page history | Printable version   
Community Hurdle Assessment
ADVERTISEMENT
Accounting eLearning Courses
PDF Tools
Add page
Print collection (0 pages)
Collections help
Partnerships
SourceForge.net Logo
Openbravo ERP at SourceForge

SourceForge.net Logo
Openbravo POS at SourceForge

Open Solution Alliance Logo
Openbravo at Open Solutions Alliance

ReportBusinessPartner data.xsql

<?xml version="1.0" encoding="UTF-8" ?>
<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html 
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SL 
 * All portions are Copyright (C) 2001-2008 Openbravo SL 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->





<SqlClass name="ReportBusinessPartnerData" package="org.openbravo.erpCommon.ad_reports">
  <SqlClassComment></SqlClassComment>
  <SqlMethod name="select" type="preparedStatement" return="multiple">
    <SqlMethodComment></SqlMethodComment>
    <Sql>
    <![CDATA[
      SELECT AD_ORG.NAME AS AD_ORG, C_BP_GROUP.NAME AS BPGROUP, C_BPARTNER.NAME, 
      C_BPARTNER.ISVENDOR, C_BPARTNER.ISCUSTOMER, C_BPARTNER.ISEMPLOYEE, C_BPARTNER.ISSALESREP
      FROM C_BPARTNER, AD_ORG, C_BP_GROUP 
      WHERE C_BPARTNER.AD_ORG_ID = AD_ORG.AD_ORG_ID
      AND C_BP_GROUP.C_BP_GROUP_ID = C_BPARTNER.C_BP_GROUP_ID 
      AND C_BPARTNER.AD_CLIENT_ID IN ('1')
      AND C_BPARTNER.AD_ORG_ID IN ('1')
      AND 1=1      
      ORDER BY AD_ORG ASC, BPGROUP ASC, NAME ASC
     ]]></Sql>
    <Field name="rownum" value="count"/>
    <Parameter name="adUser" type="replace" optional="true" after="AND C_BPARTNER.AD_CLIENT_ID IN (" text="'1'"/>
    <Parameter name="adOrg" type="replace" optional="true" after="AND C_BPARTNER.AD_ORG_ID IN (" text="'1'"/>
    <Parameter name="cBpartnerGroupId" optional="true" after="AND 1=1"><![CDATA[AND C_BP_GROUP.C_BP_GROUP_ID = TO_NUMBER(?)]]></Parameter>
  </SqlMethod>

  <SqlMethod name="set" type="constant" return="multiple">
      <SqlMethodComment></SqlMethodComment>
      <Sql></Sql>
  </SqlMethod>
</SqlClass>

Retrieved from "http://wiki.openbravo.com/wiki/ReportBusinessPartner_data.xsql"

This page has been accessed 638 times. This page was last modified 13:20, 29 October 2008. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.


Category: Configuration