Commit af6e66e9 authored by arawankar's avatar arawankar

PostOrderActivity.java

-Changes made to return proper errString while creation of purchase receipt through despatch confirm.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@193392 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1fd8a05d
......@@ -232,6 +232,10 @@ public class PostOrderActivity {
String userId = "";//Added By Pavan R 27/DEC/17
try
{
//Modified by Anjali R. on [23/11/2018][Start]
ITMDBAccessEJB itmDbAccess = new ITMDBAccessEJB();
//Modified by Anjali R. on [23/11/2018][End]
Calendar currentDate = Calendar.getInstance();
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getApplDateFormat());
String sysDateStr = sdf1.format(currentDate.getTime());
......@@ -390,6 +394,9 @@ public class PostOrderActivity {
if(suppCodeCh.trim().length()==0)
{
errCode="VTSUPPCH";
//Modified by Anjali R. on [23/11/2018][Start]
errCode = itmDbAccess.getErrorString("", errCode, userId);
//Modified by Anjali R. on [23/11/2018][eND]
return errCode;
}
sql="select asn_reqd from supplier where supp_code=? ";
......@@ -459,6 +466,9 @@ public class PostOrderActivity {
if(custPord.trim().length()==0)
{
errCode="VTPOINV";
//Modified by Anjali R. on [23/11/2018][Start]
errCode = itmDbAccess.getErrorString("", errCode, userId);
//Modified by Anjali R. on [23/11/2018][END]
return errCode;
}
}
......@@ -485,6 +495,9 @@ public class PostOrderActivity {
if(countPO==0)
{
errCode="VTPONF";
//Modified by Anjali R. on [23/11/2018][Start]
errCode = itmDbAccess.getErrorString("", errCode, userId);
//Modified by Anjali R. on [23/11/2018][end]
return errCode;
}
......@@ -801,6 +814,9 @@ public class PostOrderActivity {
if(cntPO==0)
{
errCode="VTPURCDET";
//Modified by Anjali R. on [23/11/2018][Start]
errCode = itmDbAccess.getErrorString("", errCode, userId);
//Modified by Anjali R. on [23/11/2018][End]
return errCode;
}
}
......@@ -848,6 +864,9 @@ public class PostOrderActivity {
if(!"W".equalsIgnoreCase(errorType) && errorType.trim().length() != 0)
{
errCode="VTPURCDET1";
//Modified by Anjali R. on [23/11/2018][Start]
errCode = itmDbAccess.getErrorString("", errCode, userId);
//Modified by Anjali R. on [23/11/2018][End]
return errCode;
}
{
......@@ -887,6 +906,9 @@ public class PostOrderActivity {
if(cntPO==0)
{
errCode="VTPURCDET";
//Modified by Anjali R. on [23/11/2018][Start]
errCode = itmDbAccess.getErrorString("", errCode, userId);
//Modified by Anjali R. on [23/11/2018][End]
return errCode;
}
}
......
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