Commit 7e27f3f5 authored by prane's avatar prane

commented condition for checking null taxes

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@188365 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bf5b4f4c
...@@ -6591,15 +6591,15 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -6591,15 +6591,15 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if (taxChapHdr == null || taxChapHdr.trim().length() == 0) { //if (taxChapHdr == null || taxChapHdr.trim().length() == 0) {
taxChapHdr = distCommon.getTaxChap("", mItemSer, "C", custCodeTax, lsSiteCodeShip, conn); taxChapHdr = distCommon.getTaxChap("", mItemSer, "C", custCodeTax, lsSiteCodeShip, conn);
} //}
if (taxClassHdr == null || taxClassHdr.trim().length() == 0) { //if (taxClassHdr == null || taxClassHdr.trim().length() == 0) {
taxClassHdr = distCommon.getTaxClass("C", custCodeTax, "", lsSiteCodeShip, conn); taxClassHdr = distCommon.getTaxClass("C", custCodeTax, "", lsSiteCodeShip, conn);
} //}
if (taxEnvHdr == null || taxEnvHdr.trim().length() == 0) { //if (taxEnvHdr == null || taxEnvHdr.trim().length() == 0) {
taxEnvHdr = distCommon.getTaxEnv(lsStationfr, stanCodeTo, taxChapHdr, taxClassHdr, lsSiteCodeShip, conn); taxEnvHdr = distCommon.getTaxEnv(lsStationfr, stanCodeTo, taxChapHdr, taxClassHdr, lsSiteCodeShip, conn);
} //}
valueXmlString.append("<tax_class>").append("<![CDATA[" + taxClassHdr + "]]>").append("</tax_class>"); valueXmlString.append("<tax_class>").append("<![CDATA[" + taxClassHdr + "]]>").append("</tax_class>");
setNodeValue(dom, "tax_class", getAbsString(taxClassHdr)); setNodeValue(dom, "tax_class", getAbsString(taxClassHdr));
valueXmlString.append("<tax_chap>").append("<![CDATA[" + taxChapHdr + "]]>").append("</tax_chap>"); valueXmlString.append("<tax_chap>").append("<![CDATA[" + taxChapHdr + "]]>").append("</tax_chap>");
......
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