Commit e879936c authored by caluka's avatar caluka

existing stock amount set on lot sl item change


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101736 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 70ee1c19
......@@ -1076,7 +1076,7 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
String previousLineLot ="",lineNoStr="",tareWeight="";
long lineNo=0,trackLife=0;
double itmQty=0,mQty=0,mTrackShelflife=0,mAmount=0,mRate=0,mCapacity=0,mNetWt=0,mNetWtItem=0,mNoart=0,mGrossWeight=0,mNetWeight=0,mGrosswt=0,mTareWt=0,mIntegrlQty=0;
double shelflife=0.0,convQtyFact=0.0;
double shelflife=0.0,convQtyFact=0.0,potectRate=0.0;
Timestamp MfgDateTimeStamp=null,mExpdateTimeStamp=null,retestDateTmStmp=null;
ArrayList convAr = null;
int currentFormNo = 0,pos=0;
......@@ -1836,9 +1836,9 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
valAcct(itemCodeDom,siteCodeDom,locCode,lotNo,lotSl,valueXmlString,dom2,conn);
protectRate(dom2,valueXmlString,conn);
rate=protectRate(dom2,valueXmlString,conn);
setNodeValue( dom, "rate", rate );
setNodeValue( dom, "rate",rate );
reStr=itemChanged(dom,dom1, dom2, objContext,"rate",editFlag,xtraParams);
pos = reStr.indexOf("<Detail2>");
reStr = reStr.substring(pos + 9);
......@@ -2146,7 +2146,7 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
}
private void protectRate(Document dom,StringBuffer valueXmlString,Connection conn) throws RemoteException, ITMException
private String protectRate(Document dom,StringBuffer valueXmlString,Connection conn) throws RemoteException, ITMException
{
PreparedStatement pstmt1 = null;
PreparedStatement pstmt2 = null;
......@@ -2159,11 +2159,6 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
try
{
if(conn ==null)
{
System.out.println("connenction not avilable");
}
itemCodeDom=checkNull(genericUtility.getColumnValue("item_code",dom));
siteCodeDom=checkNull(genericUtility.getColumnValue("site_code",dom));
lotNo=checkNull(genericUtility.getColumnValue("lot_no",dom));
......@@ -2237,6 +2232,7 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
valueXmlString.append("<rate protect=\"0\"><![CDATA[").append(mRate).append("]]></rate>\r\n");
}
}
return rate;
}
catch(Exception e)
{
......
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