Commit 90966ccc authored by mchauhan's avatar mchauhan

If pack code is null then it will throw an error and Added Error code

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@209545 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 28d3d114
...@@ -987,7 +987,13 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj ...@@ -987,7 +987,13 @@ public class AdjReceiptIC extends ValidatorEJB implements AdjReceiptICRemote,Adj
packCode = this.genericUtility.getColumnValue("pack_code", dom); packCode = this.genericUtility.getColumnValue("pack_code", dom);
cnt=0; cnt=0;
if(packCode !=null && packCode.trim().length()>0) if(packCode == null || packCode.trim().length()==0)
{
errCode = "VTPCKCD";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
{ {
sql = "select count(*) from packing where pack_code = ?"; sql = "select count(*) from packing where pack_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
......
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