Commit 4b03e2d9 authored by manohar's avatar manohar

Bug fix wrong variable name corrected


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95559 ce508802-f39f-4f6c-b175-0d175dae99d5
parent be084cdb
......@@ -450,7 +450,7 @@ public class ReceiptAdvAct extends ActionHandlerEJB implements ReceiptAdvActLoca
Connection conn = null;
double exchRateD = 0.0,exchRateRcv = 0, discExchRate = 0,billDiscAmt = 0;
double totAmt = 0.0,adjAmt = 0.0,balance = 0.0,taxAmt = 0.0,rcpAmt = 0;
double totAmt = 0.0,adjAmt = 0.0,balance = 0.0,taxAmt = 0.0;
double discount = 0.0,rcptAmt= 0.0,diffamtexch=0.0,badDebtAmt = 0,discountLc = 0,finChg = 0;
ConnDriver connDriver = new ConnDriver();
......@@ -587,17 +587,22 @@ public class ReceiptAdvAct extends ActionHandlerEJB implements ReceiptAdvActLoca
}
valueXmlString.append("<bill_disc>").append("<![CDATA[" + billDisc + "]]>").append("</bill_disc>\r\n");
//Added by manoj dtd 13102012 to make workable for Customer remittence
System.out.println("04/07/14 winName [" + winName + "]");
if(!"w_rcp_tr".equalsIgnoreCase(winName))
{
if (("Y".equals(billDisc)) && ("Y".equals(bdFluctuationCf)))
{
valueXmlString.append("<exch_rate>").append("<![CDATA[" + discExchRate + "]]>").append("</exch_rate>\r\n");
diffamtexch = (rcpAmt * exchRateRcv) - (rcpAmt * discExchRate);
diffamtexch = (rcptAmt * exchRateRcv) - (rcptAmt * discExchRate);
System.out.println("04/07/14 1 winName [" + winName + "] rcptAmt [" + rcptAmt + "] exchRateRcv [" + exchRateRcv + "] discExchRate [" + discExchRate + "] diffamtexch [" + diffamtexch +"]");
valueXmlString.append("<diff_amt__exch>").append("<![CDATA[" + diffamtexch + "]]>").append("</diff_amt__exch>\r\n");
}
else
{
diffamtexch = (rcpAmt * exchRateRcv) - (rcpAmt * exchRateD);
diffamtexch = (rcptAmt * exchRateRcv) - (rcptAmt * exchRateD);
System.out.println("04/07/14 2 winName [" + winName + "] rcpAmt [" + rcptAmt + "] exchRateRcv [" + exchRateRcv + "] discExchRate [" + discExchRate + "] diffamtexch [" + diffamtexch +"]");
valueXmlString.append("<diff_amt__exch>").append("<![CDATA[").append(diffamtexch).append("]]>").append("</diff_amt__exch>\r\n");
}
}
......@@ -655,7 +660,7 @@ public class ReceiptAdvAct extends ActionHandlerEJB implements ReceiptAdvActLoca
if (discountLc == 0.0D) discountLc = 0.0D;
if ("P".equals(fchgType))
{
discountLc = rcpAmt * (finChg / 36500.0D) * days;
discountLc = rcptAmt * (finChg / 36500.0D) * days;
}
else
{
......
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