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 ...@@ -16569,32 +16569,35 @@ public String nfCheckPeriod(String modCode, java.util.Date tranDate , String sit
itemSeries = " "; itemSeries = " ";
} }
String acctColName = "", cctrColName = ""; String acctColName = "", cctrColName = "";
switch (purpose) if("DIS".equalsIgnoreCase(purpose))
{ {
case "DIS": acctColName = "acct_code__dis";
acctColName = "acct_code__dis"; cctrColName = "cctr_code__dis";
cctrColName = "cctr_code__dis"; }
break; else if("TAXRECO".equalsIgnoreCase(purpose))
case "TAXRECO": {
acctColName = "acct_code__reco"; acctColName = "acct_code__reco";
cctrColName = "cctr_code__reco"; cctrColName = "cctr_code__reco";
break; }
case "COGS": else if("COGS".equalsIgnoreCase(purpose))
acctColName = "acct_code__cogs"; {
cctrColName = "cctr_code__cogs"; acctColName = "acct_code__cogs";
break; cctrColName = "cctr_code__cogs";
case "SAL": }
acctColName = "acct_code__sal"; else if("SAL".equalsIgnoreCase(purpose))
cctrColName = "cctr_code__sal"; {
break; acctColName = "acct_code__sal";
case "AR": cctrColName = "cctr_code__sal";
acctColName = "acct_code__ar"; }
cctrColName = "cctr_code__ar"; else if("AR".equalsIgnoreCase(purpose))
break; {
case "SRET": acctColName = "acct_code__ar";
acctColName = "acct_code__sret"; cctrColName = "cctr_code__ar";
cctrColName = "cctr_code__sret"; }
break; else if("SRET".equalsIgnoreCase(purpose))
{
acctColName = "acct_code__sret";
cctrColName = "cctr_code__sret";
} }
itemSerVal = itemSer; 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