Commit be4f3321 authored by mnair's avatar mnair

Added checkNull to tax_env and tax_class in supplier code column and removed the else condition

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185458 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c4173f14
...@@ -6544,15 +6544,11 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -6544,15 +6544,11 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
if (taxclassDes == null || taxclassDes.trim().length() == 0) { if (taxclassDes == null || taxclassDes.trim().length() == 0) {
// taxclassDes = // taxclassDes =
// gf_get_taxclass('S',suppCode,"",siteCodeDlv) // gf_get_taxclass('S',suppCode,"",siteCodeDlv)
taxclassDes = distComm.getTaxClass("S", suppCode, taxclassDes = checkNull(distComm.getTaxClass("S", suppCode,
"", siteCodeDlv, conn); "", siteCodeDlv, conn));
System.out.println("@@taxclassDes from distComm@@"+taxclassDes); System.out.println("@@taxclassDes from distComm@@"+taxclassDes);
} }
else
{
taxclassDes = "";
System.out.println("@@taxclassDes as empty value@@"+taxclassDes);
}
if (taxChap == null || taxChap.trim().length() == 0) { if (taxChap == null || taxChap.trim().length() == 0) {
// taxchapDes = gf_get_taxchap("", itemSer, 'S', // taxchapDes = gf_get_taxchap("", itemSer, 'S',
// suppCode,siteCodeDlv) // suppCode,siteCodeDlv)
...@@ -6566,30 +6562,25 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -6566,30 +6562,25 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
// taxenvDes = gf_get_taxenv(stationstanCode, // taxenvDes = gf_get_taxenv(stationstanCode,
// stationCodeto, taxchapDes, // stationCodeto, taxchapDes,
// taxclassDes,siteCodeDlv) // taxclassDes,siteCodeDlv)
taxenvDes = distComm.getTaxEnv(stationstanCode, taxenvDes = checkNull(distComm.getTaxEnv(stationstanCode,
stationCodeto, taxchapDes, taxclassDes, stationCodeto, taxchapDes, taxclassDes,
siteCodeDlv, conn); siteCodeDlv, conn));
System.out.println("@@taxenvDes from distComm@@"+taxenvDes); System.out.println("@@taxenvDes from distComm@@"+taxenvDes);
} }
else
{
taxenvDes = "";
System.out.println("@@taxenvDes as empty value@@"+taxenvDes);
}
} valueXmlString.append("<tax_class>")
valueXmlString.append("<tax_class>") .append("<![CDATA[" + taxclassDes + "]]>")
.append("<![CDATA[" + taxclassDes + "]]>") .append("</tax_class>");
.append("</tax_class>");
valueXmlString.append("<tax_chap>")
valueXmlString.append("<tax_chap>") .append("<![CDATA[" + taxchapDes + "]]>")
.append("<![CDATA[" + taxchapDes + "]]>") .append("</tax_chap>");
.append("</tax_chap>");
valueXmlString.append("<tax_env>")
valueXmlString.append("<tax_env>") .append("<![CDATA[" + taxenvDes + "]]>")
.append("<![CDATA[" + taxenvDes + "]]>") .append("</tax_env>");
.append("</tax_env>"); }
valueXmlString.append("<price_list__clg>") valueXmlString.append("<price_list__clg>")
.append("<![CDATA[" + priceListClg + "]]>") .append("<![CDATA[" + priceListClg + "]]>")
.append("</price_list__clg>"); .append("</price_list__clg>");
......
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