Commit 0c6d02ce authored by prahate's avatar prahate

Changes done for connection.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200612 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d79cb3ce
......@@ -6174,7 +6174,7 @@ public class DistCommon {
+ " where item_code = '" + itemCode + "')";*/
sql = " SELECT item_ser__old FROM itemser_change WHERE ITEM_CODE = ? AND (( eff_date >= ? AND valid_upto >= ?) "
+ "or (valid_upto is null )) AND eff_date = (select min(eff_date) from itemser_change where item_code = ?";
+ "or (valid_upto is null )) AND eff_date = (select min(eff_date) from itemser_change where item_code = ?)";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setTimestamp(2, tranDate);
......
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