src/org/openbravo/erpCommon/ad_callouts/SE_Period_Control_data.xsql
author RM packaging bot <staff.rm@openbravo.com>
Wed, 25 May 2011 10:31:25 +0000
changeset 9449 d467781fb9a6
parent 9072 79e55dfc8af0
permissions -rw-r--r--
Update AD_MODULE version to 2.50MP30
victor@2268
     1
<?xml version="1.0" encoding="UTF-8" ?>
victor@2268
     2
<!--
victor@2268
     3
 *************************************************************************
victor@2268
     4
 * The contents of this file are subject to the Openbravo  Public  License
priya@9072
     5
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
victor@2268
     6
 * Version 1.1  with a permitted attribution clause; you may not  use this
victor@2268
     7
 * file except in compliance with the License. You  may  obtain  a copy of
victor@2268
     8
 * the License at http://www.openbravo.com/legal/license.html 
victor@2268
     9
 * Software distributed under the License  is  distributed  on  an "AS IS"
victor@2268
    10
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
victor@2268
    11
 * License for the specific  language  governing  rights  and  limitations
victor@2268
    12
 * under the License. 
victor@2268
    13
 * The Original Code is Openbravo ERP. 
ggi@6701
    14
 * The Initial Developer of the Original Code is Openbravo SLU 
ggi@6701
    15
 * All portions are Copyright (C) 2008-2009 Openbravo SLU 
victor@2268
    16
 * All Rights Reserved. 
victor@2268
    17
 * Contributor(s):  ______________________________________.
victor@2268
    18
 ************************************************************************
victor@2268
    19
-->
victor@2268
    20
victor@2268
    21
<SqlClass name="SEPeriodControlData" package="org.openbravo.erpCommon.ad_callouts">
victor@2268
    22
  <SqlMethod name="select" type="preparedStatement" return="String">
victor@2268
    23
    <SqlMethodComment></SqlMethodComment>
victor@2268
    24
    <Sql>
victor@2268
    25
      <![CDATA[
victor@2268
    26
        SELECT 'Y' as IsPeriodControlAllowed
victor@2268
    27
        FROM AD_OrgType 
victor@2268
    28
        WHERE AD_OrgType_ID=? 
victor@3099
    29
        AND (ISBUSINESSUNIT='Y' OR (ISLEGALENTITY='Y' AND ISACCTLEGALENTITY='Y'))
victor@2268
    30
      ]]>
victor@2268
    31
    </Sql>
victor@2268
    32
    <Parameter name="adOrgId"/>
victor@2268
    33
  </SqlMethod>
victor@2268
    34
</SqlClass>