Commit 033c1f79 authored by vvengurlekar's avatar vvengurlekar

FinCommon.java - switch is changed to if-else ladder as java 1.6 is not...

FinCommon.java - switch is changed to if-else ladder as java 1.6 is not supporting switch with string


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194187 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 06b73e37
......@@ -16569,32 +16569,35 @@ public String nfCheckPeriod(String modCode, java.util.Date tranDate , String sit
itemSeries = " ";
}
String acctColName = "", cctrColName = "";
switch (purpose)
if("DIS".equalsIgnoreCase(purpose))
{
case "DIS":
acctColName = "acct_code__dis";
cctrColName = "cctr_code__dis";
break;
case "TAXRECO":
}
else if("TAXRECO".equalsIgnoreCase(purpose))
{
acctColName = "acct_code__reco";
cctrColName = "cctr_code__reco";
break;
case "COGS":
}
else if("COGS".equalsIgnoreCase(purpose))
{
acctColName = "acct_code__cogs";
cctrColName = "cctr_code__cogs";
break;
case "SAL":
}
else if("SAL".equalsIgnoreCase(purpose))
{
acctColName = "acct_code__sal";
cctrColName = "cctr_code__sal";
break;
case "AR":
}
else if("AR".equalsIgnoreCase(purpose))
{
acctColName = "acct_code__ar";
cctrColName = "cctr_code__ar";
break;
case "SRET":
}
else if("SRET".equalsIgnoreCase(purpose))
{
acctColName = "acct_code__sret";
cctrColName = "cctr_code__sret";
break;
}
itemSerVal = itemSer;
......
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