Commit 48673a54 authored by mnair's avatar mnair

Removed the first condition of tax_env and tax_class in itemchange of supp_code column

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185143 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1ccf070f
...@@ -6442,9 +6442,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -6442,9 +6442,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
//Changes by mayur on 16-May-2018---[start] //Changes by mayur on 16-May-2018---[start]
if(taxclassDes == null || taxclassDes.trim().length() == 0 ) sql = "select tax_class from site_supplier where site_code = ?"
{
sql = "select tax_class from site_supplier where site_code = ?" //checking tax_class in site_supplier table
+" and supp_code = ? "; +" and supp_code = ? ";
System.out.println("SQL::"+sql); System.out.println("SQL::"+sql);
...@@ -6456,19 +6454,17 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -6456,19 +6454,17 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
{ {
taxclassDes = rs.getString("tax_class") == null ? "" : rs taxclassDes = rs.getString("tax_class") == null ? "" : rs
.getString("tax_class"); .getString("tax_class");
// taxclassDes = taxClassSiteSupp; System.out.println("@@taxclassDes in site_supplier@@"+taxclassDes);
System.out.println("@@taxClassSiteSupp in site_supplier@@"+taxclassDes);
} }
rs.close(); rs.close();
rs = null; rs = null;
pStmt.close(); pStmt.close();
pStmt = null; pStmt = null;
}
if(taxclassDes == null || taxclassDes.trim().length() == 0) if(taxclassDes == null || taxclassDes.trim().length() == 0)
{ {
sql = "select tax_class from supplier where supp_code = ? "; //checking tax_class in supplier table sql = "select tax_class from supplier where supp_code = ? ";
System.out.println("SQL::"+sql); System.out.println("SQL::"+sql);
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
...@@ -6478,8 +6474,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -6478,8 +6474,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
{ {
taxclassDes = rs.getString("tax_class") == null ? "" : rs taxclassDes = rs.getString("tax_class") == null ? "" : rs
.getString("tax_class"); .getString("tax_class");
//taxclassDes = taxClassSupplier; System.out.println("@@taxclassDes in supplier@@"+taxclassDes);
System.out.println("@@taxClassSupplier in supplier@@"+taxclassDes);
} }
rs.close(); rs.close();
...@@ -6488,9 +6483,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -6488,9 +6483,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
pStmt = null; pStmt = null;
} }
if(taxenvDes == null || taxenvDes.trim().length() == 0) sql = "select tax_env from site_supplier where site_code = ?"
{
sql = "select tax_env from site_supplier where site_code = ?" //checking tax_env in site_supplier table
+" and supp_code = ? "; +" and supp_code = ? ";
System.out.println("SQL::"+sql); System.out.println("SQL::"+sql);
...@@ -6502,8 +6495,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -6502,8 +6495,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
{ {
taxenvDes= rs.getString("tax_env") == null ? "" : rs taxenvDes= rs.getString("tax_env") == null ? "" : rs
.getString("tax_env"); .getString("tax_env");
//taxenvDes = taxEnvSiteSupp; System.out.println("@@taxenvDes in site_supplier@@"+taxenvDes);
System.out.println("@@taxEnvSiteSupp in site_supplier@@"+taxenvDes);
} }
...@@ -6511,11 +6503,10 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -6511,11 +6503,10 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
rs = null; rs = null;
pStmt.close(); pStmt.close();
pStmt = null; pStmt = null;
}
if(taxenvDes == null || taxenvDes.trim().length() == 0) if(taxenvDes == null || taxenvDes.trim().length() == 0)
{ {
sql = "select tax_env from supplier where supp_code = ? "; //checking tax_class in supplier table sql = "select tax_env from supplier where supp_code = ? ";
System.out.println("SQL::"+sql); System.out.println("SQL::"+sql);
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
...@@ -6526,8 +6517,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -6526,8 +6517,7 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
taxenvDes = rs.getString("tax_env") == null ? "" : rs taxenvDes = rs.getString("tax_env") == null ? "" : rs
.getString("tax_env"); .getString("tax_env");
//taxenvDes = taxEnvSupplier; System.out.println("@@taxenvDes in supplier@@"+taxenvDes);
System.out.println("@@taxEnvSupplier in supplier@@"+taxenvDes);
} }
rs.close(); rs.close();
......
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