Commit ee042d3a authored by ppatro's avatar ppatro

bug fixing notify term and price list discount check


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105019 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d22e5d57
......@@ -1030,7 +1030,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
else if (childNodeName.equalsIgnoreCase("notify_term"))
{
dlvTerm = checkNull(genericUtility.getColumnValue("notify_term", dom));
System.out.println("quotNo: " + dlvTerm);
System.out.println("Notify Term: " + dlvTerm);
if (dlvTerm.trim().length() != 0)
{
if (!(isExist(conn, "delivery_term", "dlv_term", dlvTerm)))
......@@ -1040,7 +1040,8 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
errFields.add(childNodeName.toLowerCase());
}
}
} else if (childNodeName.equalsIgnoreCase("emp_code__ord"))
}
else if (childNodeName.equalsIgnoreCase("emp_code__ord"))
{
String empCodeOrd = "";
empCodeOrd = checkNull(genericUtility.getColumnValue("emp_code__ord", dom));
......@@ -1443,7 +1444,9 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
else if (childNodeName.equalsIgnoreCase("price_list__disc"))
{
priceListDisc = checkNull(genericUtility.getColumnValue("price_list__disc", dom));
if (priceListClg != null && priceListClg.trim().length() > 0)
//Changed By pragyan 19/Mar/17 wrong veriable check
//if (priceListClg != null && priceListClg.trim().length() > 0)
if (priceListDisc != null && priceListDisc.trim().length() > 0)
{
sql = "select distinct list_type from pricelist_mst where price_list = ?";
pstmt = conn.prepareStatement(sql);
......@@ -11379,7 +11382,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
{
dlvTerm = "NA";
}
valueXmlString.append("<ls_notify_term>").append("<![CDATA[" + dlvTerm + "]]>").append("</ls_notify_term>");
//Changed By Pragyan 19/Mar/17 to set notify term
//valueXmlString.append("<ls_notify_term>").append("<![CDATA[" + dlvTerm + "]]>").append("</ls_notify_term>");
valueXmlString.append("<notify_term>").append("<![CDATA[" + dlvTerm + "]]>").append("</notify_term>");
} catch (ITMException e)
{
// TODO Auto-generated catch block
......
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