Commit 7c9a82a4 authored by msharma's avatar msharma

Allocate stock in case of Active Allow


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93997 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d97020ce
......@@ -1660,9 +1660,11 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
lotQtyToBeAllocated=div*shipperSize;
if(lotQtyToBeAllocated > qtyAvailAlloc)
{
lotQtyToBeAllocated = 0;
System.out.println("::::::uncommon");
//lotQtyToBeAllocated = 0;
lotQtyToBeAllocated = qtyAvailAlloc;
//System.out.println("::::::uncommon");
}
System.out.println("lotQtyToBeAllocated---"+lotQtyToBeAllocated+"---qtyAvailAlloc---"+qtyAvailAlloc);
}
System.out.println("::lotQtyToBeAllocated::"+lotQtyToBeAllocated);
}
......@@ -1859,7 +1861,15 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
pstmtStock.clearParameters();
pstmtStock.close();
System.out.println("manohar connection commited errString :::"+ errString );
conn.commit();
System.out.println("manoj if Quantity is fuly allocated commiting transaction else rollbacking :::"+ allocQty );
if(allocQty==0)
{
conn.commit();
}
else
{
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