Commit 55f1b1cf authored by cpatil's avatar cpatil

change due date to tran date in get data querry


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92925 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 17ac18bf
......@@ -482,9 +482,14 @@ Put a validation chq amount in filter and total of details matches in case heade
//+ "AND D.CUST_CODE >= '"+custCodeFrom.trim()+"' AND D.CUST_CODE <= '"+custCodeTo.trim()+"' "
//+ " and c.group_code in ( select distinct group_code from customer where cust_code >= ? and cust_code <= ?) "
+" and C.cust_code in (select cust_code from customer where group_code in ( select distinct group_code from customer where group_code >= ? and group_code <= ? ) ) "
+ "AND ((D.DUE_DATE >= ? "//CHANGES MADE ON 18/12/2006 AND A.DUE_DATE->D.EXP_RCP_DATE
+ "AND D.DUE_DATE <= ? ) OR (D.DUE_DATE IS NULL)) "//CHANGES MADE ON 18/12/2006 AND A.DUE_DATE->D.EXP_RCP_DATE
+ "ORDER BY D.DUE_DATE ";
// commented by cpatil start on 30-03-13
//+ "AND ((D.DUE_DATE >= ? "//CHANGES MADE ON 18/12/2006 AND A.DUE_DATE->D.EXP_RCP_DATE
//+ "AND D.DUE_DATE <= ? ) OR (D.DUE_DATE IS NULL)) "//CHANGES MADE ON 18/12/2006 AND A.DUE_DATE->D.EXP_RCP_DATE
//+ "ORDER BY D.DUE_DATE ";
// commented by cpatil end on 30-03-13
+ "AND ((D.TRAN_DATE >= ? "
+ "AND D.TRAN_DATE <= ? ) OR (D.TRAN_DATE IS NULL)) "
+ "ORDER BY D.TRAN_DATE ";
writeLog(filePtr,"GetData 2nd Sql :::."+ sql,true);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,siteCode.trim());
......
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