Commit bebd2fc5 authored by rtiwari's avatar rtiwari

currect sequence of sql and set value of bill_disc_amt


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93142 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 38f224be
......@@ -496,7 +496,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
pstmt = null;
//RcpDetMap = new HashMap();
sql = "select line_no__ref,ref_ser,ref_no,acct_code__ar,cctr_code__ar,exch_rate__rcv,rcp_amt,fin_chg,cust_code,bad_debt_amt from rcpdet where tran_id = ?";
sql = "select line_no__ref,ref_ser,ref_no,acct_code__ar,cctr_code__ar,exch_rate__rcv,rcp_amt,fin_chg,cust_code,bad_debt_amt,bill_disc_amt from rcpdet where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);
rs = pstmt.executeQuery();
......@@ -513,6 +513,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
RcpDetMap.put("fin_chg", rs.getDouble("fin_chg"));
RcpDetMap.put("cust_code", rs.getString("cust_code"));
RcpDetMap.put("bad_debt_amt", rs.getDouble("bad_debt_amt"));
RcpDetMap.put("bill_disc_amt", rs.getDouble("bill_disc_amt")); //ADDED BY RITESH ON 24/05/13
RcpDetList.add(RcpDetMap);
System.out.println(" DetMap Map..........");
......@@ -636,8 +637,8 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
{
sql = "SELECT export_fund.acct_code__ar, export_fund.cctr_code__ar, export_fund.exch_rate, sundry_type,sundry_code FROM export_fund, export_fundet WHERE ( export_fund.tran_id = export_fundet.tran_id ) and ( export_fund.confirmed = 'Y') and( ( export_fundet.ref_ser = ? ) and ( export_fundet.ref_no = ? ) )" ;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,refNo);
pstmt.setString(2,refSer);
pstmt.setString(1,refSer); //modify by ritesh on 24/05/13
pstmt.setString(2,refNo); //modify by ritesh on 24/05/13
rs = pstmt.executeQuery();
while(rs.next())
{
......
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