Commit 7b1bf096 authored by ajadhav's avatar ajadhav

unclosed connection, statment and resultset to be closed

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@184492 ce508802-f39f-4f6c-b175-0d175dae99d5
parent de0b1d8f
......@@ -189,6 +189,11 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
conn = getConnection();
//Changes and Commented By Bhushan on 09-06-2016 :END
stmt = conn.createStatement();
//String detailDom= genericUtility.serializeDom(dom);
//System.out.println("detailDomlist::::"+detailDom);
if(dom != null )
{
itemCode = genericUtility.getColumnValue("item_code",dom);
locCode = genericUtility.getColumnValue("loc_code",dom);
quantity = genericUtility.getColumnValue("quantity",dom);
......@@ -319,14 +324,8 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
//Added arun pal 12-oct-2017
//valueXmlString.append("<rate>").append("<![CDATA[").append(rs.getDouble(10)).append("]]>").append("</rate>\r\n");
valueXmlString.append("</Detail>\r\n");
}//while end
}
//Add by Ajay on 02/05/18:START
rs.close();
rs = null;
stmt.close();
stmt = null;
//Add by Ajay on 02/05/18:END
//while end
valueXmlString.append("</Root>\r\n");
}
catch(Exception e)
......@@ -2202,9 +2201,15 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
//Added By Pavan Rane on 29MAR2018[START][iss_criteria in item master is W. then system should not allow to issue partial quantity.]
if (issCriteria != null && ("W").equalsIgnoreCase(issCriteria))
{
minputQty = stockQty;
if (stockQty >= remQuantity)
{
minputQty = remQuantity;
remQuantity = 0;
}
else
{
remQuantity = remQuantity - stockQty;
}
}
else
......
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