Commit 42cb34c8 authored by msharma's avatar msharma

Condition added to handle accountcode


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95300 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d6b5d7ff
...@@ -6451,8 +6451,28 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe ...@@ -6451,8 +6451,28 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
String stracctDet=fcommon.getAcctDetrTtype(itemCode,itemSer,"IN",indType,conn); String stracctDet=fcommon.getAcctDetrTtype(itemCode,itemSer,"IN",indType,conn);
System.out.println("stracctDet----"+stracctDet); System.out.println("stracctDet----"+stracctDet);
String acctDetArray[]=stracctDet.split(","); String acctDetArray[]=stracctDet.split(",");
acctCode=acctDetArray[0]; //Condition Added by manoj dtd 25/06/2014 to handle accountcode
cctrCode=acctDetArray[1]; if(acctDetArray.length>0)
{
if(acctDetArray.length==1)
{
acctCode=acctDetArray[0];
cctrCode="";
}
else if(acctDetArray.length==2)
{
acctCode=acctDetArray[0];
cctrCode=acctDetArray[1];
}
}
else
{
acctCode="";
cctrCode="";
}
//acctCode=acctDetArray[0];
//cctrCode=acctDetArray[1];
fcommon=null; fcommon=null;
//Ended by Manoj dtd 11/03/2014 to set Account Code //Ended by Manoj dtd 11/03/2014 to set Account Code
xmlValues = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><Root>"; xmlValues = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><Root>";
......
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