src/org/openbravo/erpCommon/ad_forms/DocLineGLJournal_data.xsql
author Iván Perdomo <ivan.perdomo@openbravo.com>
Thu, 24 Apr 2008 17:12:02 +0000
changeset 770 8850d5956eba
parent 423 ecf368072c48
child 1605 8a0fe0193bef
permissions -rw-r--r--
Bug fix [0000111]. Modified mapping name used on manual code.
carlos@0
     1
<?xml version="1.0" encoding="UTF-8" ?>
carlos@0
     2
<!--
carlos@0
     3
 ******************************************************************************
carlos@0
     4
 * The contents of this file are subject to the   Compiere License  Version 1.1
carlos@0
     5
 * ("License"); You may not use this file except in compliance with the License
carlos@0
     6
 * You may obtain a copy of the License at http://www.compiere.org/license.html
carlos@0
     7
 * Software distributed under the License is distributed on an  "AS IS"  basis,
carlos@0
     8
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
carlos@0
     9
 * the specific language governing rights and limitations under the License.
carlos@0
    10
 * The Original Code is                  Compiere  ERP & CRM  Business Solution
carlos@0
    11
 * The Initial Developer of the Original Code is Jorg Janke  and ComPiere, Inc.
carlos@0
    12
 * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
carlos@0
    13
 * created by ComPiere are Copyright (C) ComPiere, Inc.;   All Rights Reserved.
carlos@0
    14
 * Contributor(s): Openbravo SL
carlos@0
    15
 * Contributions are Copyright (C) 2001-2006 Openbravo S.L.
carlos@0
    16
 ******************************************************************************
carlos@0
    17
-->
carlos@0
    18
carlos@0
    19
carlos@0
    20
carlos@0
    21
carlos@0
    22
carlos@0
    23
<SqlClass name="DocLineGLJournalData" package="org.openbravo.erpCommon.ad_forms">
carlos@0
    24
  <SqlClassComment></SqlClassComment>
carlos@0
    25
  <SqlMethod name="select" type="preparedStatement" return="multiple">
carlos@0
    26
    <SqlMethodComment></SqlMethodComment>
carlos@0
    27
    <Sql>
carlos@0
    28
      <![CDATA[
carlos@0
    29
        SELECT jl.GL_JournalLine_ID,jl.AD_Client_ID,jl.AD_Org_ID,jl.Line,jl.Description,
carlos@0
    30
        jl.C_Currency_ID,jl.AmtSourceDr,jl.AmtSourceCr,jl.CurrencyRateType,jl.CurrencyRate,
carlos@0
    31
        j.DateAcct,jl.AmtAcctDr,jl.AmtAcctCr,jl.C_UOM_ID,jl.Qty,vc.C_AcctSchema_ID,vc.C_ValidCombination_ID,
carlos@0
    32
        vc.Account_ID,vc.M_Product_ID,vc.C_BPartner_ID,vc.AD_OrgTrx_ID,vc.C_LocFrom_ID,vc.C_LocTo_ID,
carlos@0
    33
        vc.C_SalesRegion_ID,vc.C_Project_ID,vc.C_Campaign_ID,vc.C_Activity_ID,vc.User1_ID,vc.User2_ID,
carlos@0
    34
        jl.C_DEBT_PAYMENT_ID
carlos@0
    35
        FROM C_ValidCombination vc, GL_JournalLine jl , GL_Journal j
carlos@0
    36
        WHERE j.GL_JOURNAL_ID = jl.GL_JOURNAL_ID
carlos@0
    37
        and vc.C_ValidCombination_ID=jl.C_ValidCombination_ID
carlos@423
    38
        AND jl.GL_Journal_ID = TO_NUMBER(?)
carlos@0
    39
        AND jl.IsActive='Y' 
carlos@0
    40
        AND vc.IsFullyQualified='Y'
carlos@0
    41
        ORDER BY jl.Line
carlos@0
    42
     ]]>
carlos@0
    43
     </Sql>
carlos@0
    44
     <Parameter name="GL_Journal_ID"/>
carlos@0
    45
   </SqlMethod>
carlos@0
    46
   </SqlClass>