Commit 8c13c990 authored by cpatil's avatar cpatil

add joint of ind_no


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93657 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 21794a8e
......@@ -193,7 +193,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
//end of addition
//changes done by cpandey for approved indent no status = 'A'
sql = "select count(*) from indent where status = 'A' and item_code = ? and ind_no = ? ";
sql = "select count(*) from indent where status = 'A' and item_code = ? and ind_no = ? "; //add joint of ind_no
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, indentNo);
......@@ -211,23 +211,21 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
errCode = "VTINDNO";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
//added by cpandey for approved indent no on 06/11/12
} //added by cpandey for approved indent no on 06/11/12
else
{
sql = "select status from indent where item_code = ?";
sql = "select status from indent where item_code = ? and ind_no = ? "; //add joint of ind_no
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, indentNo);
rs = pstmt.executeQuery();
if(rs.next())
{
status = rs.getString("status");
System.out.println("Status of indent no-->> ["+status+"]");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
rs.close(); rs = null;
pstmt.close(); pstmt = null;
if(!("A".equalsIgnoreCase(status.trim())))
{
errCode = "VTINDNONAP";
......
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