Commit 04887fb5 authored by arawankar's avatar arawankar

MiscRcpConf.java

-Changes made in query

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@201391 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 38ad6278
...@@ -1240,10 +1240,16 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M ...@@ -1240,10 +1240,16 @@ public class MiscRcpConf extends ActionHandlerEJB implements MiscRcpConfLocal,M
lineNo = utilMethod.right(" " + lineNo.trim(), 3); lineNo = utilMethod.right(" " + lineNo.trim(), 3);
refId = (String) glTrace.get("ref_id"); refId = (String) glTrace.get("ref_id");
sql1 = "SELECT (CASE WHEN SUM(tax_amt) IS NULL THEN 0 ELSE SUM(tax_amt) END), " + //Modified by Anjali R. on [30/05/2019][wrong sql written][Start]
/*sql1 = "SELECT (CASE WHEN SUM(tax_amt) IS NULL THEN 0 ELSE SUM(tax_amt) END), " +
" acct_code, cctr_code,CASE WHEN SUM(reco_amount) IS NULL THEN 0 ELSE SUM(reco_amount) END " +
" FROM taxtran WHERE tran_code = 'M-RCP'AND tran_id = ? AND line_no = ? " +
" AND effect <> 'N'GROUP BY line_no, ACCT_CODE, cctr_code";*/
sql1 = "SELECT (CASE WHEN SUM(tax_amt) IS NULL THEN 0 ELSE SUM(tax_amt) END) as tax_amt, " +
" acct_code, cctr_code,CASE WHEN SUM(reco_amount) IS NULL THEN 0 ELSE SUM(reco_amount) END " + " acct_code, cctr_code,CASE WHEN SUM(reco_amount) IS NULL THEN 0 ELSE SUM(reco_amount) END " +
" FROM taxtran WHERE tran_code = 'M-RCP'AND tran_id = ? AND line_no = ? " + " FROM taxtran WHERE tran_code = 'M-RCP'AND tran_id = ? AND line_no = ? " +
" AND effect <> 'N'GROUP BY line_no, ACCT_CODE, cctr_code"; " AND effect <> 'N'GROUP BY line_no, ACCT_CODE, cctr_code";
//Modified by Anjali R. on [30/05/2019][wrong sql written][End]
pstmt1 = conn.prepareStatement(sql1); pstmt1 = conn.prepareStatement(sql1);
pstmt1.setString(1,refId ); pstmt1.setString(1,refId );
pstmt1.setString(2, lineNo); pstmt1.setString(2, lineNo);
......
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