Commit def77300 authored by msharma's avatar msharma

return -1 if no Pricelistparent found


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92782 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 776fd761
...@@ -1229,14 +1229,16 @@ public class DistCommon ...@@ -1229,14 +1229,16 @@ public class DistCommon
if (rs.next()) if (rs.next())
{ {
priceListParent = rs.getString(1) == null ?"":rs.getString(1); priceListParent = rs.getString(1) == null ?"":rs.getString(1);
//System.out.println("The priceListParent is .... "+priceListParent); System.out.println("The priceListParent is .... "+priceListParent);
//comment by manazir on 10/05/09 //comment by manazir on 10/05/09
/*if((priceListParent == null) || priceListParent.trim().length() == 0) //Uncommented by manoj dtd 01/03/2013 to return if no Pricelistparent found
if((priceListParent == null) || priceListParent.trim().length() == 0)
{ {
priceListParent = ""; priceListParent = "";
System.out.println("The priceListParent if null .... "+priceListParent); System.out.println("The priceListParent if null .... "+priceListParent);
//return -1; System.out.println("Return -1 if priceListParent is found null .... ");
}*/ return -1;
}
if(priceListParent.trim().length() > 0) if(priceListParent.trim().length() > 0)
{ {
try try
......
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