Commit 6bad97f9 authored by msharma's avatar msharma

Coin difference issue corrected


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95044 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6d6b651a
...@@ -9291,12 +9291,17 @@ public class FinCommon ...@@ -9291,12 +9291,17 @@ public class FinCommon
totDrAmt = totDrAmt + drAmt; totDrAmt = totDrAmt + drAmt;
totCrAmt = totCrAmt + crAmt; totCrAmt = totCrAmt + crAmt;
totDrAmt = getRequiredDecimal(totDrAmt, 2);
totCrAmt = getRequiredDecimal(totCrAmt, 2);
//System.out.println("debitAmt----"+drAmt+"--creditAmt---"+crAmt+"---Total Debit Amt---"+totDrAmt+"---Total Credit Amt---"+totCrAmt);
} }
rs.close(); rs.close();
if(totDrAmt == totCrAmt){ if(totDrAmt == totCrAmt){
return ""; return "";
} }
diffAmt = totDrAmt - totCrAmt; diffAmt = totDrAmt - totCrAmt;
diffAmt=getRequiredDecimal(diffAmt, 2);
System.out.println("Difference Amount----"+diffAmt);
if(Math.abs(diffAmt) > 1){ if(Math.abs(diffAmt) > 1){
errString = itmDBAccessEJB.getErrorString("","VCOINDIFF1","","",conn); errString = itmDBAccessEJB.getErrorString("","VCOINDIFF1","","",conn);
return errString; return errString;
......
...@@ -1927,7 +1927,7 @@ public class MiscDrCrRcpConf extends ActionHandlerEJB implements MiscDrCrRcpConf ...@@ -1927,7 +1927,7 @@ public class MiscDrCrRcpConf extends ActionHandlerEJB implements MiscDrCrRcpConf
// amount = Double.parseDouble(miscRdetListMap.get("amount").toString()); // amount = Double.parseDouble(miscRdetListMap.get("amount").toString());
amount = (Double)miscRdetListMap.get("amount"); amount = (Double)miscRdetListMap.get("amount");
System.out.println("Det amount=="+amount); System.out.println("Det amount=="+amount);
if(amount > 0) //added by kunal on 21/mar/14 if(amount != 0) //added by kunal on 21/mar/14
{ {
anal1 = (String)miscRdetListMap.get("analysis1"); anal1 = (String)miscRdetListMap.get("analysis1");
anal2 = (String)miscRdetListMap.get("analysis2"); anal2 = (String)miscRdetListMap.get("analysis2");
......
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