Commit 0e67838a authored by cpatil's avatar cpatil

add trim for tax variable


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93701 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6528e0ca
...@@ -214,10 +214,10 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -214,10 +214,10 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
"(case when d.spec_instr is null then ' ' else d.spec_instr end) as spec_instr," + "(case when d.spec_instr is null then ' ' else d.spec_instr end) as spec_instr," +
"(case when d.spl_instr is null then ' ' else d.spl_instr end) as spl_instr," + "(case when d.spl_instr is null then ' ' else d.spl_instr end) as spl_instr," +
"(case when d.tax_class is null then ' ' else d.tax_class end) as tax_class," + "(case when d.tax_class is null then '' else d.tax_class end) as tax_class," +
"(case when d.tax_chap is null then ' ' else d.tax_chap end) as tax_chap," + "(case when d.tax_chap is null then '' else d.tax_chap end) as tax_chap," +
"(case when d.tax_env is null then ' ' else d.tax_env end) as tax_env," + "(case when d.tax_env is null then '' else d.tax_env end) as tax_env," +
"d.req_date as req_date," + " d.req_date as req_date," +
"(case when h.item_code is null then ' ' else h.item_code end) as hitemcode , " + "(case when h.item_code is null then ' ' else h.item_code end) as hitemcode , " +
"(case when h.site_code is null then ' ' else h.site_code end) as hsitecode , " + "(case when h.site_code is null then ' ' else h.site_code end) as hsitecode , " +
...@@ -263,7 +263,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -263,7 +263,7 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
taxChap = checkNull(rs.getString("tax_chap")); taxChap = checkNull(rs.getString("tax_chap"));
taxEnv = checkNull(rs.getString("tax_env")); taxEnv = checkNull(rs.getString("tax_env"));
reqDate = rs.getDate("req_date"); reqDate = rs.getDate("req_date");
System.out.println("@@@@@ 1 taxClass["+taxClass+"]::taxChap["+taxChap+"]:::taxEnv["+taxEnv+"]");
amount = checkNull(rs.getString("amount")); amount = checkNull(rs.getString("amount"));
hItemCode = checkNull(rs.getString("hitemcode"));// hItemCode = checkNull(rs.getString("hitemcode"));//
System.out.println("hItemCode-->>["+hItemCode+"]"); System.out.println("hItemCode-->>["+hItemCode+"]");
...@@ -1321,12 +1321,14 @@ implements BillofQuantityActLocal, BillofQuantityActRemote ...@@ -1321,12 +1321,14 @@ implements BillofQuantityActLocal, BillofQuantityActRemote
//added project code for item change on purchase order //added project code for item change on purchase order
valueXmlString.append("<proj_code isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("proj_code", currDetail1)).append("]]>").append("</proj_code>\r\n"); valueXmlString.append("<proj_code isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("proj_code", currDetail1)).append("]]>").append("</proj_code>\r\n");
valueXmlString.append("<rate__stduom isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("rate__stduom", currDetail1)).append("]]>").append("</rate__stduom>\r\n"); valueXmlString.append("<rate__stduom isSrvCallOnChg='0'>").append("<![CDATA[").append(genericUtility.getColumnValueFromNode("rate__stduom", currDetail1)).append("]]>").append("</rate__stduom>\r\n");
//add by akhilesh on 01/apr/2013 to set the field on item code item changes disable //add by akhilesh on 01/apr/2013 to set the field on item code item changes disable
valueXmlString.append("<tax_class protect=\"0\" isSrvCallOnChg='0'>").append("<![CDATA[").append(checkNull(genericUtility.getColumnValueFromNode("tax_class", currDetail1))).append("]]>").append("</tax_class>\r\n"); valueXmlString.append("<tax_class protect=\"0\" isSrvCallOnChg='0'>").append("<![CDATA[").append(checkNull(genericUtility.getColumnValueFromNode("tax_class", currDetail1)).trim()).append("]]>").append("</tax_class>\r\n");
valueXmlString.append("<tax_chap protect=\"0\" isSrvCallOnChg='0'>").append("<![CDATA[").append(checkNull(genericUtility.getColumnValueFromNode("tax_chap", currDetail1))).append("]]>").append("</tax_chap>\r\n"); valueXmlString.append("<tax_chap protect=\"0\" isSrvCallOnChg='0'>").append("<![CDATA[").append(checkNull(genericUtility.getColumnValueFromNode("tax_chap", currDetail1)).trim()).append("]]>").append("</tax_chap>\r\n");
valueXmlString.append("<tax_env protect=\"0\" isSrvCallOnChg='0'>").append("<![CDATA[").append(checkNull(genericUtility.getColumnValueFromNode("tax_env", currDetail1))).append("]]>").append("</tax_env>\r\n"); valueXmlString.append("<tax_env protect=\"0\" isSrvCallOnChg='0'>").append("<![CDATA[").append(checkNull(genericUtility.getColumnValueFromNode("tax_env", currDetail1)).trim()).append("]]>").append("</tax_env>\r\n");
System.out.println("@@@@@ 3 taxClass["+ checkNull(genericUtility.getColumnValueFromNode("tax_class", currDetail1)).trim()+"]::taxChap["+checkNull(genericUtility.getColumnValueFromNode("tax_chap", currDetail1)).trim()+"]:::taxEnv["+checkNull(genericUtility.getColumnValueFromNode("tax_env", currDetail1)).trim()+"]");
discountType = genericUtility.getColumnValueFromNode("discount_type", currDetail1); discountType = genericUtility.getColumnValueFromNode("discount_type", currDetail1);
if(discountType == null || discountType.trim().equalsIgnoreCase("null") ) if(discountType == null || discountType.trim().equalsIgnoreCase("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