Commit 3cbdf378 authored by mjadhav's avatar mjadhav

changed by ritesh tiwari-validation added for indent cannot by cancelled while initiating workflow


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97871 ce508802-f39f-4f6c-b175-0d175dae99d5
parent baad2291
......@@ -4,7 +4,7 @@
Version : 1.0
Date : 24/10/2005
*/
package ibase.webitm.ejb.dis.adv;
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.*;
......@@ -78,6 +78,8 @@ public class IndentReqCnc extends ActionHandlerEJB implements IndentReqCncLocal,
conf = rs.getString("CONFIRMED");
status = rs.getString("STATUS");
System.out.println("indNo:"+indNo+":status:"+status+":conf:"+conf+":");
System.out.println(" calling IndentReqCnc2::170415"+errCode);
}
if(conf != null && conf.equalsIgnoreCase("Y"))
{
......@@ -87,6 +89,14 @@ public class IndentReqCnc extends ActionHandlerEJB implements IndentReqCncLocal,
{
errCode = "VTINDCANC2";
}
// ADDED BY RITESH ON 17-APR-2015 START
else if(status != null && status.equalsIgnoreCase("S"))
{
errCode = "VTINDCANC3";
System.out.println(" errCode::170415"+errCode);
}
// ADDED BY RITESH ON 17-APR-2015 END
if (errCode.equals(""))
{
updSql = "UPDATE INDENT_HDR SET STATUS = 'C' WHERE IND_NO ='"+indNo+"'";
......
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