Commit 9e26a804 authored by asikarwar's avatar asikarwar

changes done for validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93568 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3539c426
...@@ -333,7 +333,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo ...@@ -333,7 +333,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
sql = "select tran_id, tran_date, cust_code, tran_type, rcp_mode, bank_code, ref_no, ref_date, remarks, net_amt, curr_code," + sql = "select tran_id, tran_date, cust_code, tran_type, rcp_mode, bank_code, ref_no, ref_date, remarks, net_amt, curr_code," +
" exch_rate, net_amt__bc, fin_entity, acct_code__ar, cctr_code__ar, acct_code__bal, cctr_code__bal, site_code," + " exch_rate, net_amt__bc, fin_entity, acct_code__ar, cctr_code__ar, acct_code__bal, cctr_code__bal, site_code," +
" confirmed, adv_amt ,acct_code__cf, cctr_code__cf,eff_date, chq_amt,remarks, proj_code, entry_batch_no,bill_amt ," + " confirmed, adv_amt ,acct_code__cf, cctr_code__cf,eff_date, chq_amt,remarks, proj_code, entry_batch_no,bill_amt ," +
" diff_amt__exch, net_amt__bc, anal_code, bill_disc_amt, oth_amt, efundadj_amt, acct_code__adv, cctr_code__adv " + " diff_amt__exch, net_amt__bc, anal_code, bill_disc_amt, oth_amt, efundadj_amt, acct_code__adv, cctr_code__adv ,tax_amt" +
" from receipt where tran_id = ?"; " from receipt where tran_id = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId); pstmt.setString(1,tranId);
...@@ -378,6 +378,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo ...@@ -378,6 +378,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
RcpHdrMap.put("efundadj_amt",rs.getDouble("efundadj_amt")); RcpHdrMap.put("efundadj_amt",rs.getDouble("efundadj_amt"));
RcpHdrMap.put("acct_code__adv",rs.getString("acct_code__adv")); RcpHdrMap.put("acct_code__adv",rs.getString("acct_code__adv"));
RcpHdrMap.put("cctr_code__adv",rs.getString("cctr_code__adv")==null?"":rs.getString("cctr_code__adv")); RcpHdrMap.put("cctr_code__adv",rs.getString("cctr_code__adv")==null?"":rs.getString("cctr_code__adv"));
RcpHdrMap.put("tax_amt",rs.getDouble("tax_amt"));
System.out.println(" Header Map.........."); System.out.println(" Header Map..........");
System.out.println(RcpHdrMap.toString()); System.out.println(RcpHdrMap.toString());
...@@ -1414,6 +1415,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo ...@@ -1414,6 +1415,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
System.out.println("DDDDDDDDDDDDDDDDDDd"+total); System.out.println("DDDDDDDDDDDDDDDDDDd"+total);
/// the upper block is transfer here. /// the upper block is transfer here.
total = total + (Double)RcpHdrMap.get("net_amt"); total = total + (Double)RcpHdrMap.get("net_amt");
totBc = totBc + (Double)RcpHdrMap.get("net_amt__bc"); totBc = totBc + (Double)RcpHdrMap.get("net_amt__bc");
System.out.println("net_amt AND net_amt__bc 1"+total+""+totBc); System.out.println("net_amt AND net_amt__bc 1"+total+""+totBc);
...@@ -1467,7 +1469,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo ...@@ -1467,7 +1469,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
System.out.println("chq and total "+chq+""+total); System.out.println("chq and total "+chq+""+total);
if(chq != total) if(chq != (total+(Double)RcpHdrMap.get("tax_amt")))
{ {
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