Commit ac0be002 authored by msharma's avatar msharma

If status is null then should give error VTINDISORD


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95061 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9c1cd788
...@@ -292,7 +292,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal ...@@ -292,7 +292,7 @@ public class DistOrderAmdIC extends ValidatorEJB implements DistOrderAmdICLocal
return errString; return errString;
} }
sql = " SELECT COUNT(*) FROM distorder_det WHERE dist_order = ? and line_no = ? and status = 'O' "; sql = " SELECT COUNT(*) FROM distorder_det WHERE dist_order = ? and line_no = ? and case when status is null then 'O' else status end = 'O' ";
pstmt = conn.prepareStatement( sql ); pstmt = conn.prepareStatement( sql );
pstmt.setString(1,distOrder.trim()); pstmt.setString(1,distOrder.trim());
pstmt.setInt(2,Integer.parseInt(lineNoOrder.trim())); pstmt.setInt(2,Integer.parseInt(lineNoOrder.trim()));
......
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