Commit a5f8c60d authored by mnair's avatar mnair

Updated changes in DespatIC component


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@181639 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c14c1772
...@@ -4154,6 +4154,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -4154,6 +4154,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
siteCodeDet = checkNull(rs.getString("site_code")); siteCodeDet = checkNull(rs.getString("site_code"));
taxClass = checkNull(rs.getString("tax_class")); taxClass = checkNull(rs.getString("tax_class"));
taxChap = checkNull(rs.getString("tax_chap")); taxChap = checkNull(rs.getString("tax_chap"));
System.out.println("@@@ taxChap2:-["+taxChap+"]");
taxEnv = checkNull(rs.getString("tax_env")); taxEnv = checkNull(rs.getString("tax_env"));
discount = rs.getDouble("discount"); discount = rs.getDouble("discount");
rateStduom = rs.getDouble("rate__stduom"); rateStduom = rs.getDouble("rate__stduom");
...@@ -4498,6 +4499,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -4498,6 +4499,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
{ {
itemRef = checkNull(rs.getString("item_ref")); itemRef = checkNull(rs.getString("item_ref"));
taxChap1 = checkNull(rs.getString("tax_chap")); taxChap1 = checkNull(rs.getString("tax_chap"));
System.out.println("@@@ taxChap1:["+taxChap1+"]");
} }
rs.close(); rs.close();
rs = null; rs = null;
...@@ -4672,11 +4674,15 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -4672,11 +4674,15 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
if("null".equalsIgnoreCase(taxChap1) || taxChap1 == null || taxChap1.trim().length()==0) if("null".equalsIgnoreCase(taxChap1) || taxChap1 == null || taxChap1.trim().length()==0)
{ {
System.out.println("Inside if of Sorderitem tax chapter");
System.out.println("tax chapter 1:-------["+taxChap1+"]");
valueXmlString.append("<tax_chap>").append("<![CDATA[ ]]>").append("</tax_chap>"); valueXmlString.append("<tax_chap>").append("<![CDATA[ ]]>").append("</tax_chap>");
} }
else else
{ {
System.out.println("Inside else of Sorderitem tax chapter");
System.out.println("tax chapter 1:-------["+taxChap1+"]");
valueXmlString.append("<tax_chap>").append("<![CDATA["+taxChap1+"]]>").append("</tax_chap>"); valueXmlString.append("<tax_chap>").append("<![CDATA["+taxChap1+"]]>").append("</tax_chap>");
} }
...@@ -4785,10 +4791,11 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -4785,10 +4791,11 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
if("F".equalsIgnoreCase(nature)) if("F".equalsIgnoreCase(nature))
{ {
taxChap = getValue("tax_chap", "item", "item_code", itemcodeFree, conn); taxChap = getValue("tax_chap", "item", "item_code", itemcodeFree, conn);
System.out.println("@@@@ taxChap["+taxChap+"]"); System.out.println("@@@@ taxChap3["+taxChap+"]");
if ((! isnull(taxChap)) && lenTrim(taxChap) > 0 ) if ((! isnull(taxChap)) && lenTrim(taxChap) > 0 )
{ {
System.out.println("Inside if of tax chapter 3:-["+taxChap+"]");
valueXmlString.append("<tax_chap>").append("<![CDATA["+taxChap+"]]>").append("</tax_chap>"); valueXmlString.append("<tax_chap>").append("<![CDATA["+taxChap+"]]>").append("</tax_chap>");
setNodeValue(dom, "tax_chap", getAbsString(taxChap)); setNodeValue(dom, "tax_chap", getAbsString(taxChap));
} }
...@@ -4871,6 +4878,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -4871,6 +4878,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
mdescr1 = checkNull( rs.getString("item_code")); mdescr1 = checkNull( rs.getString("item_code"));
mNum1 = rs.getDouble("qty_alloc"); mNum1 = rs.getDouble("qty_alloc");
taxChapFr=rs.getString("tax_chap"); taxChapFr=rs.getString("tax_chap");
System.out.println("@@@ taxChapFr:-["+taxChapFr+"]");
} }
rs.close(); rs.close();
rs = null; rs = null;
......
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