Commit 18d40d10 authored by ssalve's avatar ssalve

Sarita: Added by sarita on 31MAY2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185730 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 181da5c8
...@@ -299,6 +299,18 @@ public class CostCtrAllocPosEJB extends ValidatorEJB implements CostCtrAllocPosE ...@@ -299,6 +299,18 @@ public class CostCtrAllocPosEJB extends ValidatorEJB implements CostCtrAllocPosE
System.out.println("tranIDJNRL ::["+tranIDJNRL+"]"+"site_code ["+site_code+"]" +"acc_code ["+acct_code+"]" + "lineNo ::["+lineNo+"]"+"drcrFlag ::["+drcrFlag+"]" +"finEntityJrnal ::["+finEntityJrnal+"]" +"currCodeJrnal ::["+currCodeJrnal+"]"); System.out.println("tranIDJNRL ::["+tranIDJNRL+"]"+"site_code ["+site_code+"]" +"acc_code ["+acct_code+"]" + "lineNo ::["+lineNo+"]"+"drcrFlag ::["+drcrFlag+"]" +"finEntityJrnal ::["+finEntityJrnal+"]" +"currCodeJrnal ::["+currCodeJrnal+"]");
System.out.println("Value of Flag is ::::::["+flag+"]"); System.out.println("Value of Flag is ::::::["+flag+"]");
//Added by sarita on 31MAY2018 [START]
if(from_date != null && from_date.length() > 0)
{
fromDateTimestamp = Timestamp.valueOf(from_date);
}
if(to_date != null && to_date.length() > 0)
{
toDateTimestamp = Timestamp.valueOf(to_date);
//toDateTimestamp = Timestamp.valueOf(genericUtility.getValidDateTimeString(toDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateTimeFormat()));
}
//Added by sarita on 31MAY2018 [END]
// Added by sarita on 03NOV2017 // Added by sarita on 03NOV2017
if(tot_units != null && tot_units.trim().length() > 0) if(tot_units != null && tot_units.trim().length() > 0)
{ {
...@@ -665,6 +677,7 @@ public class CostCtrAllocPosEJB extends ValidatorEJB implements CostCtrAllocPosE ...@@ -665,6 +677,7 @@ public class CostCtrAllocPosEJB extends ValidatorEJB implements CostCtrAllocPosE
if ( retString.indexOf("Success") > -1 && retString.indexOf("<TranID>") > 0 ) if ( retString.indexOf("Success") > -1 && retString.indexOf("<TranID>") > 0 )
{ {
System.out.println("Inside If block on Successful Journal Entry");
tranIDJNRL = retString.substring( retString.indexOf("<TranID>")+8, retString.indexOf("</TranID>")); tranIDJNRL = retString.substring( retString.indexOf("<TranID>")+8, retString.indexOf("</TranID>"));
System.out.println("tranIDJNRL is =======>> "+tranIDJNRL); System.out.println("tranIDJNRL is =======>> "+tranIDJNRL);
...@@ -700,9 +713,18 @@ public class CostCtrAllocPosEJB extends ValidatorEJB implements CostCtrAllocPosE ...@@ -700,9 +713,18 @@ public class CostCtrAllocPosEJB extends ValidatorEJB implements CostCtrAllocPosE
//System.out.println("final task completed:"); //System.out.println("final task completed:");
//retString = ""; //retString = "";
}// end of if block }// end of if block
//Added by sarita on 31MAY2018[start]
else if(retString.indexOf("Errors") > -1)
{
System.out.println("Inside Else if block on NO Successful Journal Entry");
isError = true;
return retString;
}
//Added by sarita on 31MAY2018[end]
else else
{ {
return retString; System.out.println("Inside Else block on Successful Journal Entry");
return retString;
} }
System.out.println("final task completed:"); System.out.println("final task completed:");
//Added By PriyankaC on 18Oct2017...[End] //Added By PriyankaC on 18Oct2017...[End]
......
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