Commit 537c5582 authored by manohar's avatar manohar

in case of allocation already in sordalloc quantity considered sordalloc itself


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91677 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 55393444
......@@ -133,10 +133,13 @@ public class DespatchPrs extends ValidatorEJB implements DespatchPrsLocal, Despa
itemCodeOrd = GenericUtility.getInstance().getColumnValueFromNode("item_code__ord",currDetail);
sordNo = GenericUtility.getInstance().getColumnValueFromNode("sord_no",currDetail);
lineNoSord = GenericUtility.getInstance().getColumnValueFromNode("line_no__sord",currDetail);
// 04/04/12 manoharan
qtyStduom = Double.parseDouble(qtyStduomStr);
// 22/02/10 manoharan if allocation found in sordalloc the deallocate
if (updateStatus.equalsIgnoreCase("A"))
{
sql = "SELECT COUNT(1) AS COUNT FROM SORDALLOC "
//sql = "SELECT COUNT(1) AS COUNT FROM SORDALLOC " // 04/04/12 manoharan
sql = "SELECT QTY_ALLOC AS COUNT FROM SORDALLOC " // 04/04/12 manoharan
+"WHERE SALE_ORDER = ? "
+"AND LINE_NO = ? "
+"AND EXP_LEV = ? "
......@@ -157,7 +160,8 @@ public class DespatchPrs extends ValidatorEJB implements DespatchPrsLocal, Despa
rs = pstmt.executeQuery();
if(rs.next())
{
count = rs.getInt(1);
//count = rs.getInt(1); //
qtyAlloc = rs.getDouble(1);
}
rs.close();
rs = null;
......@@ -165,7 +169,8 @@ public class DespatchPrs extends ValidatorEJB implements DespatchPrsLocal, Despa
pstmt = null;
// 22/02/10 manoharan if allocation found in sordalloc then deallocate
if (count > 0 )
//if (count > 0 ) // 04/04/12 manoharan
if (qtyAlloc > 0) // 04/04/12 manoharan
{
if (qtyAlloc - qtyStduom <= 0)
{
......
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