Commit f7431f4e authored by dpawar's avatar dpawar

return proper error message


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97895 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0c4687b7
......@@ -81,12 +81,12 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
{
GenericUtility genericUtility = GenericUtility.getInstance();
boolean isDespatchError = false;
//start new
public String confirm(String tranId, String xtraParam, String forcedFlag) throws RemoteException,ITMException
{
isDespatchError = false;
String errString = "";
String sql = "",sSQLUpdatSord = "";
String refId = "",proNo = "",tranProNo = "";
......@@ -1526,6 +1526,13 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
pstmtSord.close();
pstmtSord = null;
}
//Added by Dadaso pawar on 21/04/15 [Start]
System.out.println("isDespatchError@@----------->>["+isDespatchError+"]");
if(isDespatchError)
{
errString = itmDBAccessLocal.getErrorString("","VTDESPERR","");
}
}
catch(Exception e)
{
......@@ -3403,6 +3410,7 @@ public class ShipmentConf extends ActionHandlerEJB implements ShipmentConfLocal,
pstmt1.setString(3, refId);
//Changed by shankra on 16/08/13
pstmt1.executeUpdate();
isDespatchError = true;
}
else
......
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