Commit 5720e7fb authored by ajadhav's avatar ajadhav

unclosed statment and resultset to be closed

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@184473 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c405e291
...@@ -189,11 +189,6 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal, ...@@ -189,11 +189,6 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
conn = getConnection(); conn = getConnection();
//Changes and Commented By Bhushan on 09-06-2016 :END //Changes and Commented By Bhushan on 09-06-2016 :END
stmt = conn.createStatement(); stmt = conn.createStatement();
//String detailDom= genericUtility.serializeDom(dom);
//System.out.println("detailDomlist::::"+detailDom);
if(dom != null )
{
itemCode = genericUtility.getColumnValue("item_code",dom); itemCode = genericUtility.getColumnValue("item_code",dom);
locCode = genericUtility.getColumnValue("loc_code",dom); locCode = genericUtility.getColumnValue("loc_code",dom);
quantity = genericUtility.getColumnValue("quantity",dom); quantity = genericUtility.getColumnValue("quantity",dom);
...@@ -324,8 +319,14 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal, ...@@ -324,8 +319,14 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
//Added arun pal 12-oct-2017 //Added arun pal 12-oct-2017
//valueXmlString.append("<rate>").append("<![CDATA[").append(rs.getDouble(10)).append("]]>").append("</rate>\r\n"); //valueXmlString.append("<rate>").append("<![CDATA[").append(rs.getDouble(10)).append("]]>").append("</rate>\r\n");
valueXmlString.append("</Detail>\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"); valueXmlString.append("</Root>\r\n");
} }
catch(Exception e) catch(Exception e)
...@@ -2201,16 +2202,10 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal, ...@@ -2201,16 +2202,10 @@ 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.] //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)) if (issCriteria != null && ("W").equalsIgnoreCase(issCriteria))
{ {
if (stockQty >= remQuantity)
minputQty = stockQty;
if (stockQty >= remQuantity)
{ {
remQuantity = 0; minputQty = remQuantity;
} }
else
{
remQuantity = remQuantity - stockQty;
}
} }
else 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