Commit bc197ef1 authored by caluka's avatar caluka

Rithesh sended code merged as per CPATIL instruction


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98367 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0b0aa1d3
...@@ -1042,7 +1042,7 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal, ...@@ -1042,7 +1042,7 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
// Created By Sanket Girme to Check the debit note amount is greater than // Created By Sanket Girme to Check the debit note amount is greater than
// 100 or not // 100 or not
public boolean checkDebitAmt(String InvId, Connection conn) throws SQLException { public boolean checkDebitAmt(String InvId, Connection conn) {
PreparedStatement pstmt2 = null; PreparedStatement pstmt2 = null;
ResultSet rs2 = null; ResultSet rs2 = null;
int sumDebitNote = 0; int sumDebitNote = 0;
...@@ -1071,6 +1071,8 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal, ...@@ -1071,6 +1071,8 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
e.printStackTrace(); e.printStackTrace();
} }
finally finally
{
try
{ {
if (rs2 != null) { if (rs2 != null) {
rs2.close(); rs2.close();
...@@ -1081,7 +1083,12 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal, ...@@ -1081,7 +1083,12 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
pstmt2 = null; pstmt2 = null;
} }
} }
return false; catch(Exception e)
{
System.out.println("Exception to close the resultset!");
}
}
return errFlag;
} }
......
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