Commit c5783c41 authored by ngadkari's avatar ngadkari

closing of prepared statement and result set before breaking of loop

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196043 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c1604e1c
...@@ -3757,11 +3757,6 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales ...@@ -3757,11 +3757,6 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
break; break;
} }
} }
if (tempInvoiceId != null && tempInvoiceId.trim().length() > 0)
{
break;
}
if (pstmt != null) { if (pstmt != null) {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
...@@ -3769,8 +3764,14 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales ...@@ -3769,8 +3764,14 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
if (rs != null) { if (rs != null) {
rs.close(); rs.close();
rs = null; rs = null;
}// closing before break change by nandkumar gadkari on 22/01/19
if (tempInvoiceId != null && tempInvoiceId.trim().length() > 0)
{
break;
} }
} }
//Added by Nandkumar Gadkari on 14/09/18----------------[End]--------------------------------------- //Added by Nandkumar Gadkari on 14/09/18----------------[End]---------------------------------------
sql = "SELECT DOC_KEY,EFF_COST FROM MIN_RATE_HISTORY WHERE DOC_KEY = ?"; sql = "SELECT DOC_KEY,EFF_COST FROM MIN_RATE_HISTORY WHERE DOC_KEY = ?";
......
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