Commit 34829cfe authored by prane's avatar prane

to handle AIOOBException if acct / cctr not found and return ","

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185346 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4f3f011f
...@@ -3444,7 +3444,13 @@ public class InvAcct ...@@ -3444,7 +3444,13 @@ public class InvAcct
cctrCodeCogs = finCommon.getAcctDetrTtype("", itemSer, "COGS", ordType, conn); cctrCodeCogs = finCommon.getAcctDetrTtype("", itemSer, "COGS", ordType, conn);
//AcctAnalysisType("",itemSer,"COGS",ordType,siteCode,conn); //AcctAnalysisType("",itemSer,"COGS",ordType,siteCode,conn);
//Pavan R on 24may18 to handle AIOOBException if acct / cctr not found and return ","
if(cctrCodeCogs == null || cctrCodeCogs.trim().length() < 2)
{
errString = itmDBAccessEJB.getErrorString("","VTACCOGS","","",conn);
return errString ;
}
//Pavan R on 24may18 end
acctCodeCogs = getTokens(cctrCodeCogs, ",") ; acctCodeCogs = getTokens(cctrCodeCogs, ",") ;
//cctr code = acctCodeCogs[0]; //cctr code = acctCodeCogs[0];
......
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