Commit fef1bc83 authored by kshinde's avatar kshinde

Bug fix

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@186106 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 76457e45
...@@ -199,6 +199,7 @@ public String confirm(String tranId,String xtraParams,String forcedFlag) throws ...@@ -199,6 +199,7 @@ public String confirm(String tranId,String xtraParams,String forcedFlag) throws
sundryTypeDet="",acctCodeBal="",cctrCodeBal="",loanTenureUnit=""; sundryTypeDet="",acctCodeBal="",cctrCodeBal="",loanTenureUnit="";
String errString=""; String errString="";
Timestamp sanctionDt=null,disburseDt=null,tranDatehdr=null; Timestamp sanctionDt=null,disburseDt=null,tranDatehdr=null;
String tranIdRcp="";
Double loanAmthdr=0d,marginAmt=0d,marginAmtDet=0d,loanAmtBcHdr=0d,amountPaid=0d,exchRateDet=0d,TotdetAmt=0d; Double loanAmthdr=0d,marginAmt=0d,marginAmtDet=0d,loanAmtBcHdr=0d,amountPaid=0d,exchRateDet=0d,TotdetAmt=0d;
int lineInt =0,cnt = 0,loanTenure=0; int lineInt =0,cnt = 0,loanTenure=0;
boolean detailExist=false; boolean detailExist=false;
...@@ -408,15 +409,15 @@ public String confirm(String tranId,String xtraParams,String forcedFlag) throws ...@@ -408,15 +409,15 @@ public String confirm(String tranId,String xtraParams,String forcedFlag) throws
//Getting tranID from response String //Getting tranID from response String
String[] arrayForTranId = errString.split("<TranID>"); String[] arrayForTranId = errString.split("<TranID>");
int endIndex = arrayForTranId[1].indexOf("</TranID>"); int endIndex = arrayForTranId[1].indexOf("</TranID>");
tranId = arrayForTranId[1].substring(0,endIndex); tranIdRcp = arrayForTranId[1].substring(0,endIndex);
if(tranId != null && tranId.trim().length() > 0) if(tranIdRcp != null && tranIdRcp.trim().length() > 0)
{ {
System.out.println("tran_id [" + tranId + "]"); System.out.println("tran_id [" + tranIdRcp + "]");
errString = null; errString = null;
} }
//confirm webservice misc receipt //confirm webservice misc receipt
errString=confirmReceipt("misc_rcp",tranId, xtraParams,forcedFlag,conn); errString=confirmReceipt("misc_rcp",tranIdRcp, xtraParams,forcedFlag,conn);
if( errString.indexOf("VTSUCC1") == -1 ) if( errString.indexOf("VTSUCC1") == -1 )
{ {
......
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