Commit a93c675e authored by jshaikh's avatar jshaikh

some minor changes like use of rs instead of rs2

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196834 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1a859005
......@@ -2444,7 +2444,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
|| "S".equalsIgnoreCase(nature)) || (schAttr.trim().equalsIgnoreCase("Y") && discount > 0) && (!lbOrdFlag)) {
schemeCode = getSchemeCode(dom, dom1, dom2, "quantity", conn);
sql = "select CASE when scheme_flag is null then 'Q' ELSE scheme_flag END from bom where bom_code = ?";
sql = "select CASE when scheme_flag is null then 'Q' ELSE scheme_flag END as scheme_flag from bom where bom_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, schemeCode);
rs = pstmt.executeQuery();
......@@ -15577,7 +15577,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
pstmt2.setString(6, countCodeDlv);
rs2 = pstmt2.executeQuery();// missing executeQuery and pstmt2 rs2 added by Nandkumar Gadkari on 03/10/18
while (rs2.next()) {
schemeCode = rs.getString("scheme_code");
schemeCode = rs2.getString("scheme_code");
String prodSh1 = "N";
String sql22 = "SELECT CASE WHEN PROD_SCH IS NULL THEN 'N' ELSE PROD_SCH END AS PROD_SCH FROM SCHEME_APPLICABILITY WHERE SCHEME_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