Commit 13fcc8c3 authored by msalla's avatar msalla

Bank Receipt Issue - Single payment received against multiple code

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203841 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f0ea08be
...@@ -697,9 +697,9 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo ...@@ -697,9 +697,9 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
detListSize = DetList.size(); detListSize = DetList.size();
// } // }
//changes made by monika-22-july-2019 //changes made by monika-22-july-2019
// sql = "select ref_ser, ref_no,adj_amt,acct_code,cctr_code,exch_rate__vouch from rcpadv where tran_id = ?"; //sql = "select ref_ser, ref_no,adj_amt,acct_code,cctr_code,exch_rate__vouch from rcpadv where tran_id = ?";
//added by -monika-22-july-2019 //added by -monika-22-july-2019
sql = "select ref_no,adj_amt,acct_code,cctr_code from receivables where tran_id = ?"; sql = "select tran_ser,ref_no,adj_amt,cust_code,,acct_code,cctr_code,exch_rate from receivables where tran_id = ?";
//end //end
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId); pstmt.setString(1,tranId);
...@@ -707,7 +707,10 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo ...@@ -707,7 +707,10 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
while(rs.next()) while(rs.next())
{ {
ADetMap = new HashMap(); ADetMap = new HashMap();
ADetMap.put("ref_ser", rs.getString("ref_ser")); //commented by monika-22-july-2019
// ADetMap.put("ref_ser", rs.getString("ref_ser"));
//changes made by monika-22-july-2019
ADetMap.put("ref_ser", rs.getString("tran_ser"));//end
ADetMap.put("ref_no", rs.getString("ref_no")); ADetMap.put("ref_no", rs.getString("ref_no"));
ADetMap.put("adj_amt", rs.getDouble("adj_amt")); ADetMap.put("adj_amt", rs.getDouble("adj_amt"));
ADetMap.put("sundry_type", "C"); ADetMap.put("sundry_type", "C");
...@@ -717,7 +720,10 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo ...@@ -717,7 +720,10 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
ADetMap.put("sundry_code",rs.getString("cust_code"));//end ADetMap.put("sundry_code",rs.getString("cust_code"));//end
ADetMap.put("acct_code", rs.getString("acct_code")); ADetMap.put("acct_code", rs.getString("acct_code"));
ADetMap.put("cctr_code", rs.getString("cctr_code")); ADetMap.put("cctr_code", rs.getString("cctr_code"));
ADetMap.put("exch_rate__vouch", rs.getDouble("exch_rate__vouch")); //commented by monika-22-july-2019
//ADetMap.put("exch_rate__vouch", rs.getDouble("exch_rate__vouch"));
//changes made by monika-22-july-2019
ADetMap.put("exch_rate__vouch", rs.getDouble("exch_rate"));//end
ADetList.add(ADetMap); ADetList.add(ADetMap);
System.out.println(" receipt Adv Map.........."); System.out.println(" receipt Adv Map..........");
System.out.println(ADetMap.toString()); System.out.println(ADetMap.toString());
......
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