src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Locator_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
ainhoa@2742
     1
<?xml version="1.0" encoding="UTF-8" ?>
ainhoa@2742
     2
<!--
ainhoa@2742
     3
 *************************************************************************
ainhoa@2742
     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
ainhoa@2742
     6
 * Version 1.1  with a permitted attribution clause; you may not  use this
ainhoa@2742
     7
 * file except in compliance with the License. You  may  obtain  a copy of
ainhoa@2742
     8
 * the License at http://www.openbravo.com/legal/license.html 
ainhoa@2742
     9
 * Software distributed under the License  is  distributed  on  an "AS IS"
ainhoa@2742
    10
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
ainhoa@2742
    11
 * License for the specific  language  governing  rights  and  limitations
ainhoa@2742
    12
 * under the License. 
ainhoa@2742
    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) 2009 Openbravo SLU 
ainhoa@2742
    16
 * All Rights Reserved. 
ainhoa@2742
    17
 * Contributor(s):  ______________________________________.
ainhoa@2742
    18
 ************************************************************************
ainhoa@2742
    19
-->
ainhoa@2742
    20
ainhoa@2742
    21
ainhoa@2742
    22
 <SqlClass name="SLInventoryLocatorData" package="org.openbravo.erpCommon.ad_callouts">
ainhoa@2742
    23
  <SqlMethod name="select" type="preparedStatement" return="multiple">
ainhoa@2742
    24
    <SqlMethodComment></SqlMethodComment>
ainhoa@2742
    25
    <Sql>
ainhoa@2742
    26
      <![CDATA[
ainhoa@2742
    27
      SELECT COALESCE(qtyorderonhand,0) AS qtyorder, COALESCE(qtyonhand,0) AS qty
ainhoa@2742
    28
      FROM M_storage_detail 
adrianromero@8366
    29
      WHERE m_product_id=? AND m_locator_id=? AND c_uom_id=? AND 1=1 AND m_attributesetinstance_id=?
ainhoa@2742
    30
      ]]>
ainhoa@2742
    31
    </Sql>
ainhoa@2742
    32
     <Parameter name="product"/>
ainhoa@2742
    33
     <Parameter name="locator"/>
ainhoa@2742
    34
     <Parameter name="uom"/>
adrianromero@8366
    35
     <Parameter name="mProductUomId" optional="true" after="AND 1=1"><![CDATA[ AND M_PRODUCT_UOM_ID = ?]]></Parameter>
adrianromero@8366
    36
     <Parameter name="productuom" optional="true" type="none" after="AND 1=1" text=" AND M_PRODUCT_UOM_ID IS NULL"/>
ainhoa@2742
    37
     <Parameter name="attribute"/>
ainhoa@2742
    38
  </SqlMethod>
ainhoa@2742
    39
  <SqlMethod name="set" type="constant" return="multiple">
ainhoa@2742
    40
    <SqlMethodComment></SqlMethodComment>
ainhoa@2742
    41
    <Sql></Sql>
ainhoa@2742
    42
   </SqlMethod>
ainhoa@2742
    43
</SqlClass>
ainhoa@2742
    44