Commit 9180f2a5 authored by cpatil's avatar cpatil

added ZZZZZZ condition and acct_code in sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95948 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6606cb3f
...@@ -165,10 +165,11 @@ public class JvYearEndPrc extends ProcessEJB implements JvYearEndPrcLocal,JvYear ...@@ -165,10 +165,11 @@ public class JvYearEndPrc extends ProcessEJB implements JvYearEndPrcLocal,JvYear
+"AND A.SITE_CODE = ? " +"AND A.SITE_CODE = ? "
/*+"AND A.PRD_CODE >= ? " /*+"AND A.PRD_CODE >= ? "
+"AND A.PRD_CODE <= ? "*/ +"AND A.PRD_CODE <= ? "*/
+"AND A.ACCT_PRD >= ? " +"AND A.ACCT_PRD = ? " // +"AND A.ACCT_PRD >= ? " modify by cpatil on 19/0814
+"AND A.ACCT_PRD <= ? " // +"AND A.ACCT_PRD <= ? " // commented by cpatil on 19/0814
//+"AND A.ACCT_CODE >= ? " //+"AND A.ACCT_CODE >= ? "
//+"AND A.ACCT_CODE <= ? " //+"AND A.ACCT_CODE <= ? "
+" AND upper(A.PRD_CODE) <> 'ZZZZZZ' "
// +"GROUP BY A.PRD_CODE, A.ACCT_CODE, A.CCTR_CODE, A.FIN_ENTITY " // +"GROUP BY A.PRD_CODE, A.ACCT_CODE, A.CCTR_CODE, A.FIN_ENTITY "
+"GROUP BY A.ACCT_CODE " +"GROUP BY A.ACCT_CODE "
+"HAVING SUM(CASE WHEN A.DR_AMT__BASE IS NULL THEN 0 ELSE A.DR_AMT__BASE END) <> SUM(CASE WHEN A.CR_AMT__BASE " +"IS NULL THEN 0 ELSE A.CR_AMT__BASE END)"; +"HAVING SUM(CASE WHEN A.DR_AMT__BASE IS NULL THEN 0 ELSE A.DR_AMT__BASE END) <> SUM(CASE WHEN A.CR_AMT__BASE " +"IS NULL THEN 0 ELSE A.CR_AMT__BASE END)";
...@@ -178,7 +179,7 @@ public class JvYearEndPrc extends ProcessEJB implements JvYearEndPrcLocal,JvYear ...@@ -178,7 +179,7 @@ public class JvYearEndPrc extends ProcessEJB implements JvYearEndPrcLocal,JvYear
pstmt.setString( 1, siteCode ); pstmt.setString( 1, siteCode );
pstmt.setString( 2, acctPrdFrom ); pstmt.setString( 2, acctPrdFrom );
pstmt.setString( 3, acctPrdTo ); //pstmt.setString( 3, acctPrdTo ); // commented by cpatil on 19/0814
//pstmt.setString( 4, acctCodeFrom ); //pstmt.setString( 4, acctCodeFrom );
//pstmt.setString( 5, acctCodeTo ); //pstmt.setString( 5, acctCodeTo );
//System.out.println("After setting data"); //System.out.println("After setting data");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment