Commit fb555795 authored by cpatil's avatar cpatil

modify code for item code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93596 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 426342d1
......@@ -152,7 +152,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
purcOrder = checkNull(genericUtility.getColumnValue("purc_order", dom));
siteCodeOrd = checkNull(genericUtility.getColumnValue("site_code__ord", dom));
System.out.println("@@@@ purc_order["+purcOrder+"]");
if( purcOrder == null || purcOrder.trim().length() == 0 )
if( purcOrder != null && purcOrder.trim().length() > 0 )
{
sql = " select status, confirmed from porder where purc_order = ? ";
pstmt = conn.prepareStatement(sql);
......@@ -181,7 +181,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else if ("Y".equalsIgnoreCase(confirmed))
else if (!("Y".equalsIgnoreCase(confirmed)))
{
errCode = "VTNOTCONF";
errList.add(errCode);
......@@ -604,7 +604,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
}
}
if( errCode== null || errCode.trim().length()==0 )
if( errCode == null || errCode.trim().length()==0 )
{
purcOrder = checkNull(genericUtility.getColumnValue("purc_order", dom));
amdNo = checkNull(genericUtility.getColumnValue("amd_no", dom));
......@@ -2779,9 +2779,11 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
else if ( currentColumn.trim().equalsIgnoreCase("line_no__ord") )
{
lineNoOrd = checkNull(genericUtility.getColumnValue("line_no__ord", dom));
if( lineNoOrd != null && lineNoOrd.trim().length() > 0 )
{
purcOrder = checkNull(genericUtility.getColumnValue("purc_order", dom));
if( lineNoOrd != null && lineNoOrd.trim().length() > 0 && purcOrder != null && purcOrder.trim().length() > 0 )
{
lineNoOrd = " "+lineNoOrd;
lineNoOrd = lineNoOrd.substring(lineNoOrd.length()-3, lineNoOrd.length());
valueXmlString.append("<line_no__ord >").append("<![CDATA["+lineNoOrd+"]]>").append("</line_no__ord>");
......@@ -3101,7 +3103,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
itemSer = genericUtility.getColumnValue("item_ser", dom1);
itemCode = genericUtility.getColumnValue("item_code", dom);
if ( acct_dr!= null || "0".equalsIgnoreCase(acct_dr))
if ( acct_dr == null || acct_dr.trim().length() == 0 )
{
cctr_dr = fincommon.getFromAcctDetr(itemCode, itemSer, "IN", conn);
......
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