Commit 9a213756 authored by manohar's avatar manohar

Journal ref_line_no bind as integer instead of string


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97075 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4d717280
...@@ -1010,7 +1010,8 @@ public class CalculateCommission ...@@ -1010,7 +1010,8 @@ public class CalculateCommission
sql = "select exch_rate from journal where ref_ser = 'S-INV' and ref_no = ? and ref_line_no = ?"; sql = "select exch_rate from journal where ref_ser = 'S-INV' and ref_no = ? and ref_line_no = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, invno); pstmt.setString(1, invno);
pstmt.setString(2, refLineNo); //pstmt.setString(2, refLineNo);
pstmt.setInt(2, Integer.parseInt(refLineNo));
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(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