Commit 65b8deb2 authored by smestry's avatar smestry

Updated the java file for product wizard purchase tax pophelp.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103717 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f0fcbc63
...@@ -4,6 +4,7 @@ import ibase.system.config.ConnDriver; ...@@ -4,6 +4,7 @@ import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility; import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB; import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB; import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.dis.DistCommon;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException; import java.rmi.RemoteException;
...@@ -28,6 +29,7 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote, ...@@ -28,6 +29,7 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
{ {
//GenericUtility genericUtility = GenericUtility.getInstance(); //GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility(); //Added by Parikshit Kumbhar on 23/04/2015 E12GenericUtility genericUtility = new E12GenericUtility(); //Added by Parikshit Kumbhar on 23/04/2015
DistCommon discommon = new DistCommon();
/** /**
* Default constructor. * Default constructor.
*/ */
...@@ -1402,9 +1404,24 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote, ...@@ -1402,9 +1404,24 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
// Changed by Sneha on 01-04-2016, for Size Availability [End] // Changed by Sneha on 01-04-2016, for Size Availability [End]
//Changed by wasim on 02-08-2016 for tax chapter pop help [START] //Changed by wasim on 02-08-2016 for tax chapter pop help [START]
else if(field.equals("tax_chap")) else if(field.equals("tax_chap"))
{
String purchaseTaxList = checkNullAndTrim(discommon.getDisparams("999999", "PURCHASE_TAX_LIST", conn));
System.out.println("purchaseTaxList ============>>["+purchaseTaxList+"]");
if("NULLFOUND".equalsIgnoreCase(purchaseTaxList) || "".equalsIgnoreCase(purchaseTaxList) || purchaseTaxList.length() == 0)
{ {
sql = "SELECT TAX_CHAP,DESCR FROM TAXCHAP"; sql = "SELECT TAX_CHAP,DESCR FROM TAXCHAP";
} }
else
{
purchaseTaxList = purchaseTaxList.replace(",","','");
System.out.println("Inside else for PURCHASE_TAX_LIST after ============>>["+purchaseTaxList+"]");
sql = "SELECT TAX_CHAP,DESCR FROM TAXCHAP WHERE TAX_CHAP IN ('"+purchaseTaxList+"')";
}
}
//Changed by wasim on 02-08-2016 for tax chapter pop help [END] //Changed by wasim on 02-08-2016 for tax chapter pop help [END]
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
//Changed by wasim on 14-07-2016 to set site code in loc_code query [START] //Changed by wasim on 14-07-2016 to set site code in loc_code query [START]
......
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