Commit 57f8158a authored by smanohar's avatar smanohar

In case finparm RND_ACCT not having acct_code and cctr_code separated by ;...

In case finparm RND_ACCT not having acct_code and cctr_code separated by ; giving exception which is fixed

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214060 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f722c490
......@@ -1821,8 +1821,20 @@ public class VoucherConf extends ActionHandlerEJB //implements ReceiptAdvConfLoc
cctrCodeRnd = finCommon.getFinparams("999999", "RND_ACCT", conn);
if (!"NULLFOUND".equals(cctrCodeRnd))
{
acctCodeRnd = cctrCodeRnd.substring(0,cctrCodeRnd.indexOf(";"));
cctrCodeRnd = cctrCodeRnd.substring(cctrCodeRnd.indexOf(";")+1);
String tokens [] = cctrCodeRnd.split(";");
if ( tokens.length >= 2)
{
acctCodeRnd = tokens[0];
cctrCodeRnd = tokens[1];
}
else
{
acctCodeRnd = cctrCodeRnd;
cctrCodeRnd = " ";
}
}
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