Commit 3fa98f73 authored by manohar's avatar manohar

price_list from dom for null value checked


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93238 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cd2eebeb
...@@ -175,9 +175,12 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -175,9 +175,12 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
long mslab_no=0; long mslab_no=0;
priceList = genericUtility.getColumnValue("price_list",dom) ; priceList = genericUtility.getColumnValue("price_list",dom) ;
String mprice_list,mitem_code,munit,mlist_type; String mprice_list,mitem_code,munit,mlist_type;
valueXmlString.append("<price_list protect=\"1\">").append("<![CDATA["+priceList+"]]>").append("</price_list>"); // 21/06813 manoharan check for value
valueXmlString.append("<item_code protect=\"0\">").append("<![CDATA[").append(" ").append("]]>").append("</item_code>"); valueXmlString.append("<item_code protect=\"0\">").append("<![CDATA[").append(" ").append("]]>").append("</item_code>");
valueXmlString.append("<unit protect=\"0\">").append("<![CDATA[ ]]>").append("</unit>"); valueXmlString.append("<unit protect=\"0\">").append("<![CDATA[ ]]>").append("</unit>");
if (priceList != null && priceList.trim().length() > 0 )
{
valueXmlString.append("<price_list protect=\"1\">").append("<![CDATA["+priceList+"]]>").append("</price_list>");
// 31/01/2008 manoharan distinct not required // 31/01/2008 manoharan distinct not required
//sql = "SELECT DISTINCT list_type FROM PRICELIST WHERE price_list = '"+ priceList +"'"; //sql = "SELECT DISTINCT list_type FROM PRICELIST WHERE price_list = '"+ priceList +"'";
sql = "SELECT list_type FROM PRICELIST WHERE price_list = '"+ priceList +"'"; sql = "SELECT list_type FROM PRICELIST WHERE price_list = '"+ priceList +"'";
...@@ -227,6 +230,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -227,6 +230,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
} }
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