Commit 8d9fe4f2 authored by ssalve's avatar ssalve

Sarita: Resolve error coming on line_no__prc on detailString on 25 JANUARY 2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196235 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d0b63a87
...@@ -1648,6 +1648,7 @@ PoReturnICRemote { ...@@ -1648,6 +1648,7 @@ PoReturnICRemote {
lineNoRcp =genericUtility.getColumnValue("line_no__rcp",dom); lineNoRcp =genericUtility.getColumnValue("line_no__rcp",dom);
if(lineNoRcp != null) if(lineNoRcp != null)
{ {
lineNoRcp = lineNoRcp.trim();//Added by sarita on 25 JANUARY 2018
QtyLineNo = Integer.parseInt(lineNoRcp); QtyLineNo = Integer.parseInt(lineNoRcp);
} }
System.out.println("Line Number Receipt is ["+QtyLineNo+"]"); System.out.println("Line Number Receipt is ["+QtyLineNo+"]");
...@@ -2221,6 +2222,7 @@ PoReturnICRemote { ...@@ -2221,6 +2222,7 @@ PoReturnICRemote {
else else
{ {
ArrayList<Integer> linNoList = new ArrayList<Integer>(); ArrayList<Integer> linNoList = new ArrayList<Integer>();
lineNoRcp = lineNoRcp.trim(); System.out.println("lineNoRcp["+lineNoRcp+"]");//Added by sarita on 25 JANUARY 2018
int lineNo = Integer.parseInt(lineNoRcp); int lineNo = Integer.parseInt(lineNoRcp);
sql = "select line_no from porcpdet where tran_id = ?"; sql = "select line_no from porcpdet where tran_id = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -7516,7 +7518,15 @@ PoReturnICRemote { ...@@ -7516,7 +7518,15 @@ PoReturnICRemote {
{ {
for (cntr = 0; cntr < detlList.getLength(); cntr++) for (cntr = 0; cntr < detlList.getLength(); cntr++)
{ {
lineNo = Integer.parseInt(genericUtility.getColumnValueFromNode("line_no__rcp", detlList.item(cntr))); //Added and Commented by sarita on 25 JANUARY 2018[START]
lineNoStr = checkNull(genericUtility.getColumnValueFromNode("line_no__rcp", detlList.item(cntr)));
if(lineNoStr != null && lineNoStr.trim().length() > 0)
{
lineNoStr = lineNoStr.trim();
lineNo = Integer.parseInt(lineNoStr);
}
//lineNo = Integer.parseInt(genericUtility.getColumnValueFromNode("line_no__rcp", detlList.item(cntr)));
//Added and Commented by sarita on 25 JANUARY 2018 [END]
System.out.println("lineNo ["+lineNo+"]"); System.out.println("lineNo ["+lineNo+"]");
if(QtyLineNo == lineNo) if(QtyLineNo == lineNo)
{ {
......
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