Commit af501175 authored by mnair's avatar mnair

Added new sql to get tax_class from site_supplier and supplier

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@184806 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5385839a
......@@ -6469,6 +6469,53 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
} else {
taxchapDes = taxChap;
}
//Changes by mayur on 11-May-2018---[start]
if(taxEnv == null || taxEnv.trim().length() == 0)
{
sql = "select tax_env from site_supplier where site_code = ?" //checking tax_env in site_supplier table
+" supp_code = ? ";
System.out.println("SQL::"+sql);
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, siteCodeDlv);
pStmt.setString(2, suppCode);
rs = pStmt.executeQuery();
if (rs.next())
{
taxEnv = rs.getString("tax_env") == null ? "" : rs
.getString("tax_env");
taxenvDes = taxEnv ;
System.out.println("@@taxenvDes in site_supplier@@"+taxenvDes);
}
rs.close();
rs = null;
pStmt.close();
pStmt = null;
}
if(taxEnv == null || taxEnv.trim().length() == 0)
{
sql = "select tax_env from supplier where supp_code = ? "; //checking tax_env in supplier table
System.out.println("SQL::"+sql);
pStmt = conn.prepareStatement(sql);
pStmt.setString(1, suppCode);
rs = pStmt.executeQuery();
if (rs.next())
{
taxEnv = rs.getString("tax_env") == null ? "" : rs
.getString("tax_env");
taxenvDes = taxEnv ;
System.out.println("@@taxenvDes in supplier@@"+taxenvDes);
}
rs.close();
rs = null;
pStmt.close();
pStmt = null;
}
//Changes by mayur on 11-May-2018---[end]
if (taxEnv == null || taxEnv.trim().length() == 0) {
// taxenvDes = gf_get_taxenv(stationstanCode,
// stationCodeto, taxchapDes,
......
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