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,
// Created By Sanket Girme to Check the debit note amount is greater than
// 100 or not
public boolean checkDebitAmt(String InvId, Connection conn) throws SQLException {
public boolean checkDebitAmt(String InvId, Connection conn) {
PreparedStatement pstmt2 = null;
ResultSet rs2 = null;
int sumDebitNote = 0;
......@@ -1072,6 +1072,8 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
}
finally
{
try
{
if (rs2 != null) {
rs2.close();
rs2 = null;
......@@ -1080,8 +1082,13 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
pstmt2.close();
pstmt2 = null;
}
}
catch(Exception e)
{
System.out.println("Exception to close the resultset!");
}
}
return false;
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