Commit 4b3dedb1 authored by prane's avatar prane

bug in three sql whule validating scheme item

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@207232 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a3b46e3f
...@@ -1643,7 +1643,10 @@ public class SOrderAmdIC extends ValidatorEJB implements SOrderAmdICRemote,SOrde ...@@ -1643,7 +1643,10 @@ public class SOrderAmdIC extends ValidatorEJB implements SOrderAmdICRemote,SOrde
{ {
if(custPord != null && custPord.trim().length() > 0) if(custPord != null && custPord.trim().length() > 0)
{ {
sql = "select count(*) from porddet where purc_order = ? and and item_code = ? and status = 'O'"; //Pavan Rane 13sep19 start [bug fixed]
//sql = "select count(*) from porddet where purc_order = ? and and item_code = ? and status = 'O'";
sql = "select count(*) from porddet where purc_order = ? and item_code = ? and status = 'O'";
//Pavan Rane 13sep19 end [bug fixed]
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
pStmt.setString(1, custPord); pStmt.setString(1, custPord);
pStmt.setString(2, itemCode); pStmt.setString(2, itemCode);
...@@ -1961,7 +1964,10 @@ public class SOrderAmdIC extends ValidatorEJB implements SOrderAmdICRemote,SOrde ...@@ -1961,7 +1964,10 @@ public class SOrderAmdIC extends ValidatorEJB implements SOrderAmdICRemote,SOrde
if(mCnt == 0) if(mCnt == 0)
{ {
//sql = "Select count(1) from scheme_applicability_det where scheme_code = ? and and site_code is null and state_code = :mstate_cd"; // commented by mahesh saggam on 01/aug/19 //sql = "Select count(1) from scheme_applicability_det where scheme_code = ? and and site_code is null and state_code = :mstate_cd"; // commented by mahesh saggam on 01/aug/19
sql = "Select count(1) from scheme_applicability_det where scheme_code = ? and and site_code is null and state_code = ?"; // changes made to state_code by mahesh saggam on 01/aug/19 //Pavan Rane 13sep19 start [bug fixed]
//sql = "Select count(1) from scheme_applicability_det where scheme_code = ? and and site_code is null and state_code = ?"; // changes made to state_code by mahesh saggam on 01/aug/19
sql = "Select count(1) from scheme_applicability_det where scheme_code = ? and site_code is null and state_code = ?";
//Pavan Rane 13sep19 end [bug fixed]
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
pStmt.setString(1, itemCode); pStmt.setString(1, itemCode);
pStmt.setString(2, stateCodeDlv); pStmt.setString(2, stateCodeDlv);
...@@ -1982,7 +1988,10 @@ public class SOrderAmdIC extends ValidatorEJB implements SOrderAmdICRemote,SOrde ...@@ -1982,7 +1988,10 @@ public class SOrderAmdIC extends ValidatorEJB implements SOrderAmdICRemote,SOrde
} }
System.out.println("8. customer_series..." ) ; System.out.println("8. customer_series..." ) ;
sql = "Select item_code from customer_series where cust_code = ? and item_ser = ?"; //Pavan Rane 13sep19 start [bug fixed]
//sql = "Select item_code from customer_series where cust_code = ? and item_ser = ?";
sql = "Select count(*) from customer_series where cust_code = ? and item_ser = ?";
//Pavan Rane 13sep19 end [bug fixed]
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
pStmt.setString(1, custCode); pStmt.setString(1, custCode);
pStmt.setString(2, itemSer); pStmt.setString(2, itemSer);
......
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