Commit 066f69c1 authored by msharma's avatar msharma

Round Debit and credit amount in grtranupdate method


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93705 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7c3ea44a
...@@ -8342,14 +8342,16 @@ public class FinCommon ...@@ -8342,14 +8342,16 @@ public class FinCommon
GenericUtility genericUtility = null; GenericUtility genericUtility = null;
ITMDBAccessEJB itmDBAccessEJB = null; ITMDBAccessEJB itmDBAccessEJB = null;
int cnt; int cnt;
ibase.webitm.ejb.sys.UtilMethods util=new ibase.webitm.ejb.sys.UtilMethods();
try{ try{
stmt = conn.createStatement(); stmt = conn.createStatement();
genericUtility = new GenericUtility(); genericUtility = new GenericUtility();
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
itmDBAccessEJB = new ITMDBAccessEJB(); itmDBAccessEJB = new ITMDBAccessEJB();
chgDate = new Timestamp(System.currentTimeMillis()); chgDate = new Timestamp(System.currentTimeMillis());
drAmtBase = Double.parseDouble(glTran.get("dr_amt_base").toString()); drAmtBase = Double.parseDouble(util.getReqDecString(Double.parseDouble(glTran.get("dr_amt_base").toString()),2));//Rounded by manoj dtd 02/10/2013 upto 2 decimal
crAmtBase = Double.parseDouble(glTran.get("cr_amt_base").toString()); crAmtBase = Double.parseDouble(util.getReqDecString(Double.parseDouble(glTran.get("cr_amt_base").toString()),2));//Rounded by manoj dtd 02/10/2013 upto 2 decimal
//crAmtBase = Double.parseDouble(glTran.get("cr_amt_base").toString());
//Date should be in applDate Format //Date should be in applDate Format
tranDate = (Timestamp)glTran.get("tran_date"); tranDate = (Timestamp)glTran.get("tran_date");
effDate = (Timestamp)glTran.get("eff_date"); effDate = (Timestamp)glTran.get("eff_date");
......
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