Return-path: <bounces+2418806-c93a-miguel=ssf.com.mx@em.bitbucket.org>
Envelope-to: miguel@ssf.com.mx
Delivery-date: Sun, 27 Mar 2016 15:16:51 -0600
Received: from o1678990x3.outbound-mail.sendgrid.net ([167.89.90.3]:53428)
	by vishnu.hosting-mexico.net with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128)
	(Exim 4.86_1)
	(envelope-from <bounces+2418806-c93a-miguel=ssf.com.mx@em.bitbucket.org>)
	id 1akI3E-002gSa-PB
	for miguel@ssf.com.mx; Sun, 27 Mar 2016 15:16:51 -0600
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bitbucket.org; 
	h=content-type:mime-version:subject:from:to:references:in-reply-to; 
	s=s1; bh=FCLW1B8aA/oiglQ8/urstdYjBDk=; b=PoSrzDiGkhVGHtCVtDpFx1K
	MSMzkf0oSfxXdwl7UKt1UUocUZ1W86NCNHFjIrHMfUKtRbrcwZC0xQA/pI/ZWdre
	/+1nF8ylS3Mw7RDReePm2/y3WzO/sDCVZD1LsGMFIvuGhV9ZaTXzgGDbspJLdJir
	tqEF3bOJlkeXxu/hj9Wk=
Received: by filter0430p1mdw1.sendgrid.net with SMTP id filter0430p1mdw1.3074.56F84D97C
        2016-03-27 21:16:07.140165098 +0000 UTC
Received: from celery-worker-102.ash1.bb-inf.net (mail-ash.bitbucket.org [104.192.143.195])
	by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id t652u1mbT7WyV1ljYU-60w
	for <miguel@ssf.com.mx>; Sun, 27 Mar 2016 21:16:07.099 +0000 (UTC)
Received: from celery-worker-102.ash1.bb-inf.net (localhost.localdomain [127.0.0.1])
	by celery-worker-102.ash1.bb-inf.net (Postfix) with ESMTP id 5A30772279
	for <miguel@ssf.com.mx>; Sun, 27 Mar 2016 21:16:06 +0000 (UTC)
Content-Type: multipart/alternative;
 boundary="===============4228663779568776620=="
MIME-Version: 1.0
Subject: Re: [Bitbucket] Pull request #112: Agregados cambios de pull 672 y 674
 (globalgassf/globalnet3)
From: "Alexander Garcia" <pullrequests-reply@bitbucket.org>
To: miguel@ssf.com.mx
Date: Sun, 27 Mar 2016 21:16:06 -0000
Auto-Submitted: auto-generated
Message-ID: <prcomment-16327646@bitbucket.org>
References: <pr-globalgassf/globalnet3/112@bitbucket.org>
 <pr-globalgassf/globalnet3/112@bitbucket.org>
Precedence: bulk
In-Reply-To: <pr-globalgassf/globalnet3/112@bitbucket.org>
X-SG-EID: jcizN1ZJXGzc0OL9Q7wZ4g3GQhOSGfYMdoZYX2+1YtezmX7x3qec95EkI2ZPscVrmv1/aCHGJ/4WoD
 pkwn0L8V3ZeN8PlxRuZ2hPn2cxkyXMdcx7S8xo19kWFIfMcXswnjVQrHgvH+97jqWzra5pprSbqyaQ
 wZCnL98WsjyrQoHLM/XUSo/jHp0KDiU1L5iroqI/JzcLeHfYqq5hTCEZ2rUDAlVk9K5aquyERPxZCf
 s=
X-Spam-Status: No, score=-0.1
X-Spam-Score: 0
X-Spam-Bar: /
X-Ham-Report: Spam detection software, running on the system "vishnu.hosting-mexico.net",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 root\@localhost for details.
 
 Content preview:  --- you can reply above this line --- New comment on pull
   request: https://bitbucket.org/globalgassf/globalnet3/pull-requests/112/agregados-cambios-de-pull-672-y-674#comment-16327646
    [...] 
 
 Content analysis details:   (-0.1 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was blocked.
                             See
                             http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
                              for more information.
                             [URIs: cloudfront.net]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
                             trust
                             [167.89.90.3 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H4      RBL: Very Good reputation (+4)
                             [167.89.90.3 listed in wl.mailspike.net]
  0.0 HTML_MESSAGE           BODY: HTML included in message
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from author's
                             domain
  0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily valid
 -0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
 -0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
X-Spam-Flag: NO

--===============4228663779568776620==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

--- you can reply above this line ---

New comment on pull request:

https://bitbucket.org/globalgassf/globalnet3/pull-requests/112/agregados-cambios-de-pull-672-y-674#comment-16327646

Alexander Garcia said:

No estas utilizando el alias del left join con m.charge, si te fijas en el select no usas n.folio y n.total, lo que esta estaria causando es que te hace doble union, el left que tu le especificas y ademas otra union porque m.charge.folio lo reconoce como otra union. Solo cambia en el select a utilizar los alias.

--

Unwatch this pull request to stop receiving email updates:
https://bitbucket.org/globalgassf/globalnet3/pull-requests/112/unwatch/miguelssf/a80f4c55fdd2391fa61fe83da1cdeaadf02bbaa5/

--===============4228663779568776620==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
  </head>
  <body style="font: 14px/1.4285714 Arial, sans-serif; color: #333;">
    <table style="width: 100%; border-collapse: collapse;">
      <tbody>
        <tr>
          <td style="background: #f5f5f5; padding: 10px 10px 0; font: 14px/1.4285714 Arial, sans-serif;">
            <table style="width: 100%; border-collapse: collapse;">
              <tbody>
                
                
                
                
                  
                     <tr>
  <td id="main" class="comment-container no-box" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0; background-color: #ffffff; border-radius: 5px">
    <div style="border: none; border-radius: 5px; padding: 0; background: #f5f5f5">
      <table style="width: 100%; border-collapse: collapse">
        <tbody>
          <tr>
            <td class="main-comment" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0">
              <div style="border: 1px solid #ccc; border-radius: 5px; background-color: #fff; padding: 0">
                
<span style="display: none; display: none !important;">
  
    Alexander Garcia commented on pull request #112: Agregados cambios de pull 672 y 674
  
</span>
<table style="width: 100%; border-collapse: collapse">
  <tbody>
    
      <tr>
        <td class="comment-filename" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0">
          <table style="width: 100%; border-collapse: collapse">
            <tbody>
              <tr>
                <td style="font: 14px/1.4285714 Arial, sans-serif; padding: 10px; background: #f5f5f5; border-radius: 5px 5px 0 0">app/mx/ssf/globalgas/daos/credit/LedgerMovementDAO.java</td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    
    
      <tr>
        <td class="diff-line common first" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0; font-size: 11px; border-top: 1px solid #ccc">
          <table style="width: 100%; border-collapse: collapse">
            <tbody>
              <tr>
                <td class="diff-linenum from" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px'>80</td>
                <td class="diff-linenum to" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px; border-right: 1px solid #ccc'>80</td>
                <td class="diff-line-content" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; white-space: pre-wrap; background: #fff'> 		   + "m.customer.<wbr>creditDays,"</wbr></td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      
    
      <tr>
        <td class="diff-line common" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0; font-size: 11px">
          <table style="width: 100%; border-collapse: collapse">
            <tbody>
              <tr>
                <td class="diff-linenum from" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px'>81</td>
                <td class="diff-linenum to" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px; border-right: 1px solid #ccc'>81</td>
                <td class="diff-line-content" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; white-space: pre-wrap; background: #fff'> 		   + "m.customer.<wbr>discount )"</wbr></td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      
    
      <tr>
        <td class="diff-line deletion" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0; font-size: 11px">
          <table style="width: 100%; border-collapse: collapse">
            <tbody>
              <tr>
                <td class="diff-linenum from" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px'>82</td>
                <td class="diff-linenum to" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px; border-right: 1px solid #ccc'></td>
                <td class="diff-line-content" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; white-space: pre-wrap; background: #fdd'>-		   + " from Ledge<wbr>rMovement m left joi<wbr>n m.charge n join m.<wbr>invoice i "</wbr></wbr></wbr></td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      
    
      <tr>
        <td class="diff-line addition" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0; font-size: 11px">
          <table style="width: 100%; border-collapse: collapse">
            <tbody>
              <tr>
                <td class="diff-linenum from" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px'></td>
                <td class="diff-linenum to" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px; border-right: 1px solid #ccc'>82</td>
                <td class="diff-line-content" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; white-space: pre-wrap; background: #cfc'>+		   + " from Ledge<wbr>rMovement m left joi<wbr>n m.charge n left jo<wbr>in m.invoice i "</wbr></wbr></wbr></td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      
        <tr>
          <td class="line-comment" style="font: 14px/1.4285714 Arial, sans-serif; padding: 10px; background: #f5f5f5; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc">
            <div style="border: 1px solid #ccc; background: #fff; padding: 20px; border-radius: 5px">
              <table style="width: 100%; border-collapse: collapse">
                <tbody>
                  <tr>
                    
                      

<td class="comment" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0">
  <table style="width: 100%; border-collapse: collapse">
    <tbody>
      <tr>
        <td class="comment-avatar" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0; width: 32px; vertical-align: top">
          
            
              <img width="32" height="32" alt="xander-ssf" src="https://avatar-cdn.atlassian.com/b8912d4c3d67a32c7b4c1511e8c44455?s=32&amp;ts=1459113188" style="border-radius: 3px">
            
          
        </td>
        <td class="comment-main" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0 0 0 10px">
          <table style="width: 100%; border-collapse: collapse">
            <tbody>
              
                <tr>
                  <td class="comment-user" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0; line-height: 1">
                    
                      
                        <strong>Alexander Garcia</strong> commented on pull request #112:
                      
                    
                  </td>
                </tr>
                
                  <tr>
                    <td class="title" style="font: 14px/1.4285714 Arial, sans-serif; padding: 5px 0 0; font-weight: bold; line-height: 1.2">
                      <a href="https://bitbucket.org/globalgassf/globalnet3/pull-requests/112/agregados-cambios-de-pull-672-y-674#comment-16327646" style="color: #3572b0; text-decoration: none">Agregados cambios de pull 672 y 674</a>
                    </td>
                  </tr>
                
              
              <tr>
                <td class="comment-content markup-content" style="font: 14px/1.4285714 Arial, sans-serif; padding: 10px 0 15px">
                  
                    <p style="margin-bottom: 0; margin: 10px 0 0 0; padding: 0; margin-top: 0">No estas utilizando el alias del left join con m.charge, si te fijas en el select no usas n.folio y n.total, lo que esta estaria causando es que te hace doble union, el left que tu le especificas y ademas otra union porque m.charge.folio lo reconoce como otra union. Solo cambia en el select a utilizar los alias.</p>
                  
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      
        <tr>
          <td class="actions secondary" colspan="2" style="font: 14px/1.4285714 Arial, sans-serif; padding: 20px 0 0; color: #707070; border-top: 1px solid #cccccc; line-height: 1">
            
            
              
                <a href="https://bitbucket.org/globalgassf/globalnet3/pull-requests/112/agregados-cambios-de-pull-672-y-674#comment-16327646" style="color: #3572b0; text-decoration: none">View this pull request</a> or add a comment by replying to this email.
              
            
          </td>
        </tr>
      
    </tbody>
  </table>
</td>

                    
                  </tr>
                </tbody>
              </table>
            </div>
          </td>
        </tr>
      
    
      <tr>
        <td class="diff-line common" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0; font-size: 11px">
          <table style="width: 100%; border-collapse: collapse">
            <tbody>
              <tr>
                <td class="diff-linenum from" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px'>83</td>
                <td class="diff-linenum to" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px; border-right: 1px solid #ccc'>83</td>
                <td class="diff-line-content" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; white-space: pre-wrap; background: #fff'> 		   + " where m.cu<wbr>stomer.id = :custome<wbr>rId "</wbr></wbr></td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      
    
      <tr>
        <td class="diff-line common" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0; font-size: 11px">
          <table style="width: 100%; border-collapse: collapse">
            <tbody>
              <tr>
                <td class="diff-linenum from" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px'>84</td>
                <td class="diff-linenum to" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px; border-right: 1px solid #ccc'>84</td>
                <td class="diff-line-content" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; white-space: pre-wrap; background: #fff'> 			+ " and m.paymen<wbr>tType.id = :paymentT<wbr>ypeId "</wbr></wbr></td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      
    
      <tr>
        <td class="diff-line last common" style="font: 14px/1.4285714 Arial, sans-serif; padding: 0; font-size: 11px">
          <table style="width: 100%; border-collapse: collapse">
            <tbody>
              <tr>
                <td class="diff-linenum from" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px; border-bottom-left-radius: 5px'>85</td>
                <td class="diff-linenum to" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; background: #f5f5f5; text-align: center; width: 30px; border-right: 1px solid #ccc'>85</td>
                <td class="diff-line-content" style='font: 11px Consolas, Menlo, "Liberation Mono", Courier, monospace; padding: 0; white-space: pre-wrap; background: #fff; border-bottom-right-radius: 5px'> 			+ " and m.balanc<wbr>e &gt;=1 ")</wbr></td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
      
    
  </tbody>
</table>

              </div>
            </td>
          </tr>
          
  

        </tbody>
      </table>
    </div>
  </td>
</tr>

                  
                
                <tr>
                  

<td style="padding: 20px 0; color: #707070;">
  <table style="width: 100%; border-collapse: collapse;">
    <tbody>
      <tr>
        <td style="padding: 0">
          
            
            
              
              
                
                  <a style="color: #3572b0; text-decoration: none;" href="https://bitbucket.org/globalgassf/globalnet3/pull-requests/112/unwatch/miguelssf/a80f4c55fdd2391fa61fe83da1cdeaadf02bbaa5/">Unwatch this pull request</a> to stop receiving email updates.
                
              
            
          
          
        </td>
        <td style="padding: 0">
          
            

  <img width="1" height="1" src="https://bitbucket.org/account/notifications/mark-read/289245334/23834ada7a6224646192fc6ba99a5b8e398c6078/">


          
        </td>
        <td style="text-align: right; width: 100px; padding: 0">
          <a href="https://bitbucket.org" style="color: #3572b0; text-decoration: none;">
            <img width="100" height="18" src="https://d3oaxc4q5k2d6q.cloudfront.net/m/705c66f23e93/img/email/logo.gif" alt="Bitbucket" />
          </a>
        </td>
      </tr>
    </tbody>
  </table>
</td>

                </tr>
              </tbody>
            </table>
          </td>
        </tr>
      </tbody>
    </table>
  
<img src="http://link.bitbucket.org/wf/open?upn=u0x3fSBqEx-2Fl-2BmgujqmE8Jwb-2FtAhiorRbsVquOOvcTHUgebQN8OlBPttEHg12nIShwYf892K2GwplYyJPO1gtwQwehb3jOHmM1OT5ASbuvLZ3SCkC7kbDBu-2BN5RFFkNsCX3-2Bu-2BYe5gzA8s4c7fwvrji0eExGjPlR43cPJliOf9WlWYzZKwCeVqwRURwzweH2G-2F5ArxQ-2BjDDll6FFSbWnTA-3D-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body>
</html>


--===============4228663779568776620==--
