Commit 3f2fd5b2 authored by ngadkari's avatar ngadkari

changes in undo receivables adj process loop

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@198073 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f8628199
......@@ -335,7 +335,7 @@ public class UndoRecievableAdjPrc extends ProcessEJB implements UndoRecievableAd
int updCnt = 0,cnt=0;
int parentNodeListLength = 0;
int childNodeListLength = 0;
String refNoHeader="",tranType="",remarks="",refNoadj="";
String refNoHeader="",tranType="",remarks="";//refNoadj="";
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
......@@ -419,8 +419,39 @@ public class UndoRecievableAdjPrc extends ProcessEJB implements UndoRecievableAd
rs.close();rs = null;
pstmt.close();pstmt = null;
// end
// 06/03/19
int size = refNoAdjList.size();
System.out.println("refNoAdjList1============"+size);
for (int selectedRow = 0; selectedRow < parentNodeListLength; selectedRow++)
{
parentNode = parentNodeList.item(selectedRow);
refNo=checkNull(genericUtility.getColumnValueFromNode("ref_no", parentNode));
selectedRefNoList.add(refNo);
}
size = refNoAdjList.size();
System.out.println("selectedRefNoList============"+size);
for (String refNoSelect : selectedRefNoList)
{
if (refNoAdjList.contains(refNoSelect))
{
refNoAdjList.remove(refNoSelect);
removedRefNoList.add(refNoSelect);
}
}
System.out.println("removedRefNoList========="+removedRefNoList);
System.out.println("refNoAdjList========="+refNoAdjList);
//06/03/19
/*int size = refNoAdjList.size();
System.out.println("refNoAdjList1============"+size);
for(int i=0;i<size-1;i++)
{
refNoadj = refNoAdjList.get(i);
......@@ -446,7 +477,7 @@ public class UndoRecievableAdjPrc extends ProcessEJB implements UndoRecievableAd
parentNode = parentNodeList.item(selectedRow);
refNo=checkNull(genericUtility.getColumnValueFromNode("ref_no", parentNode));
selectedRefNoList.add(refNo);
}
}*/
/* tranSer=checkNull(genericUtility.getColumnValueFromNode("ref_ser", parentNode));
refNo=checkNull(genericUtility.getColumnValueFromNode("ref_no", parentNode));
......@@ -454,9 +485,10 @@ public class UndoRecievableAdjPrc extends ProcessEJB implements UndoRecievableAd
adjAmt=checkDoubleNull(genericUtility.getColumnValueFromNode("adj_amt", parentNode));*/
size = refNoAdjList.size();
System.out.println("refNoAdjList============"+size);
for(int i=0;i<=size-1;i++)
/*for(int i=0;i<=size-1;i++) */
for (String refNoadj : refNoAdjList)
{
refNoadj = refNoAdjList.get(i);
//refNoadj = refNoAdjList.get(i);
sql1 = "select ref_no,ref_ser,adj_amt from receivables_adj where ref_no_adj= ? and ref_no =? ";
pstmt = conn.prepareStatement(sql1);
......@@ -810,7 +842,7 @@ public class UndoRecievableAdjPrc extends ProcessEJB implements UndoRecievableAd
}
else
{
pstmt1.setDouble(1, headDrAmt);
pstmt1.setDouble(1, headDrAmt );
}
pstmt1.setString(2, refNo);
pstmt1.setString(3, tranSer);
......
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