Commit cc699830 authored by caluka's avatar caluka

CURR_CODE,EXCH_RATE set while generating receipt confirmation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97957 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 08fefb36
......@@ -136,6 +136,8 @@ public class EcollectionSchedule implements Schedule
String errString ="",xmlString="";
String strToWrite = "";
String endDateStr = null;
String currencyCode="";
double exchRate = 0.0;
double rcpAmt=0,bankAmount=0,rcpAmtDet=0;
int cnt=0,lineNo=0;
Date refDate=null,effDate=null;
......@@ -155,7 +157,7 @@ public class EcollectionSchedule implements Schedule
java.util.Calendar cal = java.util.Calendar.getInstance();
tranDate = simpleDateFormat.format(cal.getTime());
sql = "select bank_code,ref_no,chq_amt,cust_code,tran_type,rcp_mode,ref_date,eff_date,remarks,tran_id from " + " receipt_form where confirmed='Y' and status='C' and site_code= ? ";
sql = "select bank_code,ref_no,chq_amt,cust_code,tran_type,rcp_mode,ref_date,eff_date,remarks,tran_id,curr_code,exch_rate from " + " receipt_form where confirmed='Y' and status='C' and site_code= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
rs = pstmt.executeQuery();
......@@ -172,6 +174,8 @@ public class EcollectionSchedule implements Schedule
effDate = rs.getDate("eff_date");
remarks = rs.getString("remarks");
tranId = rs.getString("tran_id");
currencyCode = rs.getString("curr_code");
exchRate = rs.getDouble("exch_rate");
System.out.println("receipt form tranId:::::::::" + tranId);
strToWrite = tranId+",";
......@@ -212,7 +216,7 @@ public class EcollectionSchedule implements Schedule
pstmt1.close();
pstmt1 = null;
System.out.println("bankAmount>>>>>>[" + bankAmount + "]rcpAmt[" + rcpAmt + ']');
System.out.println("bankAmount>>>>>>[" + bankAmount + "]rcpAmt>>>>>[" + rcpAmt + ']');
if (rcpAmt == bankAmount)
{
StringBuffer xmlBuff = new StringBuffer();
......@@ -282,6 +286,8 @@ public class EcollectionSchedule implements Schedule
xmlBuff.append("<rcp_type><![CDATA[]]></rcp_type>");
xmlBuff.append("<remarks><![CDATA[" + remarks + "]]></remarks>");
xmlBuff.append("<fin_entity><![CDATA[" + finEntity + "]]></fin_entity>");
xmlBuff.append("<curr_code><![CDATA["+currencyCode+"]]></curr_code>");
xmlBuff.append("<exch_rate><![CDATA["+exchRate+"]]></exch_rate>");
xmlBuff.append("</Detail1>");
sql1 = " select ref_ser,ref_no,line_no__ref,rcp_amt from rcpdet_form where tran_id=? ";
......@@ -336,6 +342,7 @@ public class EcollectionSchedule implements Schedule
String tranIdForIssue = arrayForTranId[1].substring(0, endIndex);
System.out.println("tranIdForIssue" + tranIdForIssue);
errString = ReceiptAdv.confirm(tranIdForIssue, xtraParams, "", conn);
System.out.println("=====Its Confirmed=====");
System.out.println("retString from conf ::" + errString);
......
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