Commit afe36b26 authored by skumbhar's avatar skumbhar

new requirement


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94324 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 81d24329
...@@ -684,6 +684,9 @@ public class InterCompReconcile extends ValidatorEJB implements InterCompReconci ...@@ -684,6 +684,9 @@ public class InterCompReconcile extends ValidatorEJB implements InterCompReconci
ArrayList<ArrayList> arrayListData = new ArrayList<ArrayList>(); ArrayList<ArrayList> arrayListData = new ArrayList<ArrayList>();
try { try {
ArrayList traceData = null; ArrayList traceData = null;
String refId = "",refDate = "";
//java.sql.Date refDate = null;
double refAmt = 0.0,tempAmt = 0.0,dramt = 0,cramt = 0;
if ( rs != null && rs.size() > 0 ) { if ( rs != null && rs.size() > 0 ) {
System.out.println("Position of RS"); System.out.println("Position of RS");
boolean flag = true; boolean flag = true;
...@@ -691,7 +694,15 @@ public class InterCompReconcile extends ValidatorEJB implements InterCompReconci ...@@ -691,7 +694,15 @@ public class InterCompReconcile extends ValidatorEJB implements InterCompReconci
double amount = 0.0; double amount = 0.0;
for (int itr = 0;itr < rs.size();itr++) for (int itr = 0;itr < rs.size();itr++)
{ {
if( flag ){ dramt = rs.get(itr).get(5) == null ? 0.0 : Double.parseDouble(rs.get(itr).get(5).toString());
cramt = rs.get(itr).get(6) == null ? 0.0 : Double.parseDouble(rs.get(itr).get(6).toString());
tempAmt = dramt + cramt;
if(!(refId.equalsIgnoreCase(rs.get(itr).get(2).toString())) && !(refDate.equalsIgnoreCase(rs.get(itr).get(0).toString())) && refAmt != tempAmt)
{
refId = rs.get(itr).get(2).toString();
refDate = rs.get(itr).get(0).toString();
refAmt = tempAmt;
traceData = null;
traceData = new ArrayList<String>(); traceData = new ArrayList<String>();
java.util.Date date = new java.util.Date(rs.get(itr).get(0).toString()); java.util.Date date = new java.util.Date(rs.get(itr).get(0).toString());
Timestamp time = new Timestamp(date.getTime()); Timestamp time = new Timestamp(date.getTime());
......
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