Commit 0fdf632e authored by msalla's avatar msalla

ERROR WHILE CONFIRMING IBCA TRANSACTION

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@215792 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 88d6f791
......@@ -13,6 +13,7 @@ import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.sys.UtilMethods;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
......@@ -1124,6 +1125,7 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P
double adjAmt = 0.0;
double advAdj = 0.0;
double recoverAmt = 0.0;
double totAmount=0.0;
java.sql.Timestamp effDate = null;
java.sql.Timestamp tranDate = null;
java.sql.Timestamp refDate = null;
......@@ -1143,6 +1145,7 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P
FinCommon finCommon = null;
DistCommon distCommon = null;
ITMDBAccessEJB itmDBAccessEJB = null;
UtilMethods utl = new UtilMethods();
//Commented BY Varsha V object no longer required on 07-02-19
//ValidatorEJB validatorEJB = new ValidatorEJB();
// GenericUtility genericUtility = new GenericUtility();
......@@ -1300,7 +1303,13 @@ public class PayIbcaConf extends ActionHandlerEJB implements PayIbcaConfLocal, P
pstmt.close();
pstmt = null;
if(Math.abs(totAmt - adjAmt) < Math.abs(amount))
//added by monika salla on 27 jan 2020 because of floating point calculation issue in JVM the amount are not matching/ERROR WHILE CONFIRMING IBCA TRANSACTION,
System.out.println("After adjAmt["+adjAmt+"]totAmt["+totAmt+"]amount["+amount+"]");
totAmount = Double.parseDouble(utl.getReqDecString((totAmt - adjAmt),3));
System.out.println("totAMt ["+totAmount);
// if(Math.abs(totAmt - adjAmt) < Math.abs(amount))
if(Math.abs(totAmount) < Math.abs(amount))//end[MONIKA SALLA]
{
errString = itmDBAccessEJB.getErrorString("","VTBAL1","","",conn);
return 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