Commit 510b1de6 authored by manohar's avatar manohar

chq_amt calculation changed to exclue oth_amt for comparision as the same is...

chq_amt calculation changed to exclue oth_amt for comparision as the same is already considered in post save


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94330 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b4fce23b
...@@ -1905,15 +1905,13 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo ...@@ -1905,15 +1905,13 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
*/ */
chq = ((double) Double.parseDouble( "" + RcpHdrMap.get("chq_amt")) ) - ((double) Double.parseDouble( "" + RcpHdrMap.get("bill_disc_amt")));// + ((double) Double.parseDouble( "" + RcpHdrMap.get("oth_amt")) );
chq = ((double) Double.parseDouble( "" + RcpHdrMap.get("chq_amt")) ) - ((double) Double.parseDouble( "" + RcpHdrMap.get("bill_disc_amt"))) + ((double) Double.parseDouble( "" + RcpHdrMap.get("oth_amt")) );
// if EPC adjusted in same currency then // if EPC adjusted in same currency then
if(isEpcCurrSame == true) if(isEpcCurrSame == true)
{ {
chq = chq + ((double) Double.parseDouble( "" + RcpHdrMap.get("efundadj_amt"))) ; chq = chq + ((double) Double.parseDouble( "" + RcpHdrMap.get("efundadj_amt"))) ;
} }
System.out.println("chq and ["+chq+"] total ["+total + "] diff [" + Math.abs(chq - total) +"]"); System.out.println("chq and ["+chq+"] total ["+total + "] diff [" + Math.abs(chq - total) +"]");
if(Math.abs(chq - total) > 1) if(Math.abs(chq - total) > 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