Commit 760f1f5b authored by ajadhav's avatar ajadhav

add while() loop on line no 483: bug fix

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@179711 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 322e2142
...@@ -480,7 +480,9 @@ conn = getConnection(); ...@@ -480,7 +480,9 @@ conn = getConnection();
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId); pstmt.setString(1,tranId);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) //Changes and Commented by Ajay on 06/02/18:START
//if(rs.next())
while(rs.next())
{ {
refSer = rs.getString("ref_ser"); refSer = rs.getString("ref_ser");
refNo = rs.getString("ref_no"); refNo = rs.getString("ref_no");
...@@ -492,12 +494,12 @@ conn = getConnection(); ...@@ -492,12 +494,12 @@ conn = getConnection();
cctrCodeAd = rs.getString("cctr_code"); cctrCodeAd = rs.getString("cctr_code");
exchRateVouch = rs.getDouble("exch_rate__vouch"); exchRateVouch = rs.getDouble("exch_rate__vouch");
taxedAdjAmtAdv = rs.getDouble("taxed_adj_amt"); taxedAdjAmtAdv = rs.getDouble("taxed_adj_amt");
}
rs.close(); /*rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
*/
miscAdvMap = new HashMap(); miscAdvMap = new HashMap();
miscAdvMap.put("ref_ser",refSer); miscAdvMap.put("ref_ser",refSer);
miscAdvMap.put("ref_no",refNo); miscAdvMap.put("ref_no",refNo);
...@@ -510,7 +512,13 @@ conn = getConnection(); ...@@ -510,7 +512,13 @@ conn = getConnection();
miscAdvMap.put("exch_rate__vouch",exchRateVouch); miscAdvMap.put("exch_rate__vouch",exchRateVouch);
miscAdvMap.put("taxed_adj_amt",taxedAdjAmtAdv); miscAdvMap.put("taxed_adj_amt",taxedAdjAmtAdv);
miscAdvList.add(miscAdvMap); miscAdvList.add(miscAdvMap);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
//Changes and Commented By Ajay on 06/02/18:END
//lds_detac ---> d_misc_vouchacct_brow //lds_detac ---> d_misc_vouchacct_brow
sql = " SELECT line_no,acct_code, cctr_code, amount, anal_code, emp_code,remarks, " sql = " SELECT line_no,acct_code, cctr_code, amount, anal_code, emp_code,remarks, "
+ " sundry_type, sundry_code,curr_code,exch_rate,dept_code " + " sundry_type, sundry_code,curr_code,exch_rate,dept_code "
......
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