Commit 48be0feb authored by manohar's avatar manohar

null avoided in tax_class and tax_chap column while generating credit note


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95560 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4b03e2d9
...@@ -920,7 +920,8 @@ public class CalculateCommission ...@@ -920,7 +920,8 @@ public class CalculateCommission
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
taxClass = (taxClass == null ? "" : taxClass);
taxChap = (taxChap== null ? "" : taxChap);
sql = " select cr_days from crterm where cr_term = ?"; sql = " select cr_days from crterm where cr_term = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, crTerm); pstmt.setString(1, crTerm);
...@@ -2497,7 +2498,8 @@ public class CalculateCommission ...@@ -2497,7 +2498,8 @@ public class CalculateCommission
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
taxClass = (taxClass== null ? "" : taxClass);
taxChap = (taxChap== null ? "" : taxChap);
sql = " select cr_days from crterm where cr_term = ?"; sql = " select cr_days from crterm where cr_term = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, crTerm); pstmt.setString(1, crTerm);
......
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