Commit c13b981e authored by kmandhre's avatar kmandhre

update hold flag for allocate qty zero on process


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92446 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e65bd798
......@@ -664,6 +664,19 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
System.out.println("errString :"+errString);
return errString;
}
}else if(allocQty == 0) //added by kunal on 27/12/12 as per manoj instruction
{
updateSql = "UPDATE SORDDET SET HOLD_FLAG ='"+holdFlag+"'"
+ " WHERE SALE_ORDER = '" + saleOrder + " ' "
+ " AND LINE_NO = '" + lineNo + "' ";
System.out.println("updateSql::"+ updateSql);
pstmt = conn.prepareStatement(updateSql);
int noRowupdated = pstmt.executeUpdate();
System.out.println("no of row updated in sorddet = "+noRowupdated);
pstmt.close();
pstmt = null;
}
}// out for loop
......@@ -678,6 +691,22 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
return errString;
}
}*/
//added by kunal on 27/12/12
if (errString == null || errString.trim().length() == 0)
{
conn.commit();
errString="VTCOMPL";
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
return errString;
}
else
{
errString="VTPRCERR";
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
return errString;
}
//added by kunal on 27/12/12
}//try end
catch(Exception e)
......@@ -711,7 +740,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
return errString ;
}
if (errString == null || errString.trim().length() == 0)
/*if (errString == null || errString.trim().length() == 0)
{
errString="VTCOMPL";
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
......@@ -723,7 +752,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
errString = itmDBAccessEJB.getErrorString("",errString,"","",conn);
return 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