author RM packaging bot <>
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
<?xml version="1.0" encoding="UTF-8" ?>
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (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 
 * 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 SLU 
 * All portions are Copyright (C) 2001-2006 Openbravo SLU 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.

<SqlClass name="SEProjectLineValueData" package="org.openbravo.erpCommon.ad_callouts">
  <SqlMethod name="select" type="preparedStatement" return="multiple">
        select value, name, description, '' as project, '' as pricelist_version, '' as pricelist, '' as warehouse, '' as bplocation, '' as projcat, '' as plannedprice
        from m_product 
        where m_product_ID = ?
    <Parameter name="product"/>
  <SqlMethod name="selectProject" type="preparedStatement" return="multiple" default="">
      SELECT C_Project.Projectcategory as projcat, C_Project.M_Pricelist_ID as pricelist, C_Project.M_Warehouse_Id as warehouse, C_Project.C_BPartner_Location_Id as bplocation
      FROM C_Project
      WHERE C_Project.C_Project_ID = ?
    <Parameter name="cProjectId"/>
  <SqlMethod name="selectPhaseProject" type="preparedStatement" return="String" default="">
      SELECT c_projectphase.c_project_id
      FROM c_projectphase
      WHERE c_projectphase.c_projectphase_ID = ?
    <Parameter name="cPhaseId"/>
  <SqlMethod name="selectPriceListVersion" type="preparedStatement" return="String" default="">
      SELECT M_GET_PRICELIST_VERSION(?, to_date(?)) as pricelist_version
    <Parameter name="mPriceListId"/>
    <Parameter name="date"/>
  <SqlMethod name="selectPlannedPrice" type="preparedStatement" return="String" default="0">
				    FROM M_ProductPrice
				    WHERE M_PriceList_Version_id = ?
				      AND M_Product_id = ?),
                   (SELECT PRICEPRECISION 
                       FROM C_CURRENCY C,
                            C_PROJECT P 
                      WHERE C.C_CURRENCY_ID = P.C_CURRENCY_ID
                        AND P.C_PROJECT_ID = ?)) AS plannedprice FROM DUAL
    <Parameter name="mPriceListVersionId"/>
    <Parameter name="mProductId"/>
    <Parameter name="cProjectId"/>    
  <SqlMethod name="set" type="constant" return="multiple">