Commit 2f121521 authored by smanohar's avatar smanohar

VTRCPT8 formula corrected as per previous formula

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@212975 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e26df9c2
......@@ -2112,7 +2112,8 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
//end
System.out.println("chq and ["+chq+"] total ["+total + "] other_amount ]"+othAmt+" ] diff [" + Math.abs(chq +(total -taxAmt)+othAmt ) +"]");
//if(Math.abs(chq + (total - taxAmt)+othAmt) > 1)//end
if(Math.abs(chq +(total -taxAmt)+othAmt) > 1)
//if(Math.abs(chq +(total -taxAmt)+othAmt) > 1) // 30-nov-2019 manoharan commented as this will not work chq and total are same
if(Math.abs(chq -(total -taxAmt)+othAmt) > 1)
{
errString = itmDBAccessEJB.getErrorString("","VTRCPT8","","",conn);
conn.rollback();
......@@ -2125,7 +2126,8 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
//end
System.out.println("chq and ["+chq+"] total ["+total + "] other_amount ]"+othAmt+" ] diff [" + Math.abs(chq +(total -taxAmt)+othAmt ) +"]");
//if(Math.abs(chq + (total - taxAmt)+othAmt) > 1)//end
if(Math.abs(chq +(total -taxAmt)+othAmt) > 1)
//if(Math.abs(chq +(total -taxAmt)+othAmt) > 1) // 30-nov-2019 manoharan commented as this will not work chq and total are same
if(Math.abs(chq -(total -taxAmt)+othAmt) > 1)
{
errString = itmDBAccessEJB.getErrorString("","VTRCPT8","","",conn);
conn.rollback();
......
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