Commit cac50d80 authored by rtiwari's avatar rtiwari

updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94127 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f419ed26
......@@ -469,9 +469,11 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
int elements = 0;
boolean allocqtyflag = false;
ArrayList list = new ArrayList();
double integralQty = 0.0;
DecimalFormat df = new DecimalFormat("0.000");
try
{
connDriver = null;
genericUtility = new GenericUtility();
itmDBAccessEJB = new ITMDBAccessEJB();
connDriver = new ConnDriver();
......@@ -623,8 +625,23 @@ public class WoTransferPrc extends ProcessEJB implements WoTransferPrcLocal,WoTr
}
}
}//inner for loop
sql = "select INTEGRAL_QTY from item where item_code = ?";
pstmt = connOne.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if ( rs.next() )
{
integralQty = rs.getDouble(1);
}
if(rs != null)
rs.close();
rs = null;
if(pstmt != null)
pstmt.close();
pstmt = null;
System.out.println(" amount values "+actualQty+"::"+trfedQty+"::"+allocQty2);
if(Double.parseDouble(df.format(actualQty - trfedQty)) >= Double.parseDouble(df.format(allocQty2)))
//if(Double.parseDouble(df.format(actualQty - trfedQty)) >= Double.parseDouble(df.format(allocQty2)))
if((Double.parseDouble(df.format(actualQty - trfedQty)) >= Double.parseDouble(df.format(allocQty2))) || (Double.parseDouble(df.format((allocQty2 + trfedQty)-actualQty)) <= integralQty))
{
errString = allocStockToWo(lineno,siteCode,itemCode,lotno,lotsl,allocQty,reasCode,locCodeFr,explev,locCodeTo,worder,remarks,tranId,xtraParams,connOne);
System.out.println("err String from STOCKTRANS ="+errString);
......
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