Commit 9d3c4d97 authored by kmandhre's avatar kmandhre

replace pending qty to allocated qty for sql statement


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95035 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1cbaa817
......@@ -1664,7 +1664,8 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
HashMap itemVolMap = getItemVoumeMap(itemCode, "", conn);
double packSize = (Double)itemVolMap.get("PACK_SIZE");
System.out.println(" pendingQty = "+pendingQty+" packSize ="+packSize);
if((pendingQty % packSize) > 0)
System.out.println("allocQty = "+allocQty);
if((allocQty % packSize) > 0) //change done by kunal on 7/may/14 replace pending qty to alloc qty
{
isActives = true;
orderByStkStr = " AND LOCATION.INV_STAT IN(?,?,?,?,?) ";
......@@ -2034,7 +2035,6 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
pstmtStock.close();
System.out.println("manohar connection commited errString :::"+ errString );
System.out.println("manoj if Quantity is fuly allocated commiting transaction else rollbacking :::"+ allocQty );
if(allocQty==0)
{
conn.commit();
......@@ -2046,8 +2046,6 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
//errString = "VSTQTYER";
conn.rollback();
}
}
catch(SQLException se)
{
......
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