Commit e26df9c2 authored by msalla's avatar msalla

Gimatex bank receipt: Net amount not match

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@212961 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 87d9353c
...@@ -2015,7 +2015,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo ...@@ -2015,7 +2015,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
pstmt = null; pstmt = null;
totBad = 0; totBad = 0;
} }
System.out.println("aaaaaaaaaaaa"+total); System.out.println("aaaaaaaaaaaa"+total);
System.out.println("BBBBBBBBBBB"+total); System.out.println("BBBBBBBBBBB"+total);
System.out.println("CCCCCCCCCCCC"+total); System.out.println("CCCCCCCCCCCC"+total);
...@@ -2108,11 +2108,11 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo ...@@ -2108,11 +2108,11 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
if(total>0) //to check billdiscounting accounting effect -07 nov -19 if(total>0) //to check billdiscounting accounting effect -07 nov -19
{ {
total=total-billDiscountAmt; total=total-billDiscountAmt;
chq=chq-billDiscountAmt; // chq=chq-billDiscountAmt;
//end //end
System.out.println("chq and ["+chq+"] total ["+total + "] other_amount ]"+othAmt+" ] diff [" + Math.abs(chq +(total -taxAmt)+othAmt ) +"]"); 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)//end
if(Math.abs(chq -(total -taxAmt)+othAmt) > 1) if(Math.abs(chq +(total -taxAmt)+othAmt) > 1)
{ {
errString = itmDBAccessEJB.getErrorString("","VTRCPT8","","",conn); errString = itmDBAccessEJB.getErrorString("","VTRCPT8","","",conn);
conn.rollback(); 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