Commit 8b6e71c3 authored by agaikwad's avatar agaikwad

added checkNull Condition(Column tax class,chap,env)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@43852 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6826fbb5
...@@ -666,9 +666,9 @@ public class PostOrderActivity { ...@@ -666,9 +666,9 @@ public class PostOrderActivity {
itemCode=rs.getString("item_code"); itemCode=rs.getString("item_code");
sordNoDet=rs.getString("sord_no"); sordNoDet=rs.getString("sord_no");
soLineNoDet=rs.getString("line_no__sord"); soLineNoDet=rs.getString("line_no__sord");
taxClass=rs.getString("tax_class"); taxClass=checkNull(rs.getString("tax_class"));
taxChap=rs.getString("tax_chap"); taxChap=checkNull(rs.getString("tax_chap"));
taxEnv=rs.getString("tax_env"); taxEnv=checkNull(rs.getString("tax_env"));
unit=rs.getString("unit"); unit=rs.getString("unit");
unitStd=rs.getString("unit__std"); unitStd=rs.getString("unit__std");
quantity=rs.getDouble("quantity"); quantity=rs.getDouble("quantity");
...@@ -691,6 +691,9 @@ public class PostOrderActivity { ...@@ -691,6 +691,9 @@ public class PostOrderActivity {
palletWt=rs.getDouble("pallet_wt"); palletWt=rs.getDouble("pallet_wt");
packInstr=rs.getString("pack_instr"); packInstr=rs.getString("pack_instr");
System.out.println("taxClass["+taxClass+"]");
System.out.println("taxChap["+taxChap+"]");
System.out.println("taxEnv["+taxEnv+"]");
sql="select case when qc_reqd is null then 'N' else qc_reqd end," sql="select case when qc_reqd is null then 'N' else qc_reqd end,"
+ "(case when ordc_perc is null then 0 else ordc_perc end), " + "(case when ordc_perc is null then 0 else ordc_perc end), "
...@@ -1068,8 +1071,9 @@ public class PostOrderActivity { ...@@ -1068,8 +1071,9 @@ public class PostOrderActivity {
xmlBuff.append("</group0>"); xmlBuff.append("</group0>");
xmlBuff.append("</DocumentRoot>"); xmlBuff.append("</DocumentRoot>");
xmlString = xmlBuff.toString(); xmlString = xmlBuff.toString();
System.out.println("XmlString:::["+xmlBuff.toString()+"]");
retString = saveData(siteCodeCh,xmlString,connCP); retString = saveData(siteCodeCh,xmlString,connCP);
System.out.println("XmlString:::["+retString+"]");
if (retString.indexOf("Success") > -1) if (retString.indexOf("Success") > -1)
{ {
//System.out.println("@@@@@@3: retString from Purchase Receipt"+retString); //System.out.println("@@@@@@3: retString from Purchase Receipt"+retString);
......
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