Commit 814a8b4d authored by manohar's avatar manohar

status column in taxenv made within double quote as was giving invalid identifier


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91241 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2f07eb66
...@@ -6923,7 +6923,7 @@ public class DistCommon ...@@ -6923,7 +6923,7 @@ public class DistCommon
if("Y".equalsIgnoreCase(invLink)) if("Y".equalsIgnoreCase(invLink))
{ {
//ls_errcode = lnvo_fin.gbf_stk_transfer_post(lds_data.Describe("datawindow.data")) //ls_errcode = lnvo_fin.gbf_stk_transfer_post(lds_data.Describe("datawindow.data"))
// Receipt side debit entry // Receipt side debit entry
ls_inv_online = finCommon.getFinparams("999999","INV_ACCT_TRF",conn); ls_inv_online = finCommon.getFinparams("999999","INV_ACCT_TRF",conn);
if(ls_inv_online.equalsIgnoreCase("NULLFOUND")) if(ls_inv_online.equalsIgnoreCase("NULLFOUND"))
{ {
...@@ -7505,7 +7505,8 @@ public String getTaxEnv(String stationFrom ,String stationTo, String taxChap, St ...@@ -7505,7 +7505,8 @@ public String getTaxEnv(String stationFrom ,String stationTo, String taxChap, St
// if environment is still not found check on the basis of state code // if environment is still not found check on the basis of state code
if(taxEnv==null || taxEnv.trim().length()==0 ) if(taxEnv==null || taxEnv.trim().length()==0 )
{ {
sql="select state_code from station where stan_code = ? " ; // 03/03/10 manoharan
/*sql="select state_code from station where stan_code = ? " ;
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,stationFrom); pstmt.setString(1,stationFrom);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -7528,7 +7529,8 @@ public String getTaxEnv(String stationFrom ,String stationTo, String taxChap, St ...@@ -7528,7 +7529,8 @@ public String getTaxEnv(String stationFrom ,String stationTo, String taxChap, St
rs.close(); rs.close();
rs=null; rs=null;
pstmt.close(); pstmt.close();
pstmt=null; pstmt=null; */
sql="SELECT tax_env " sql="SELECT tax_env "
+" FROM tenvstan " +" FROM tenvstan "
+" WHERE state_code__fr = ? and " //state code from +" WHERE state_code__fr = ? and " //state code from
...@@ -7669,7 +7671,7 @@ public String getCheckTaxEnvStatus(String taxEnv,Timestamp currDateTs,Connection ...@@ -7669,7 +7671,7 @@ public String getCheckTaxEnvStatus(String taxEnv,Timestamp currDateTs,Connection
{ {
//java.sql.Timestamp fromDateTms = Timestamp.valueOf(genericUtility.getValidDateString(currDateTs.toString(), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); //java.sql.Timestamp fromDateTms = Timestamp.valueOf(genericUtility.getValidDateString(currDateTs.toString(), genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
sql="select (case when status is null then 'A' else status end) " sql="select (case when \"STATUS\" is null then 'A' else \"STATUS\" end) "
+" from taxenv " +" from taxenv "
+" where tax_env = ? " +" where tax_env = ? "
+" and status_date <= ? "; +" and status_date <= ? ";
...@@ -7842,7 +7844,7 @@ public String getTaxChap(String itemCode,String itemSer, String suppOrCustCode,S ...@@ -7842,7 +7844,7 @@ public String getTaxChap(String itemCode,String itemSer, String suppOrCustCode,S
} }
public java.sql.Timestamp CalcExpiry(java.sql.Timestamp date, double shelfLife) throws Exception public java.sql.Timestamp CalcExpiry(java.sql.Timestamp date, double shelfLife) throws Exception
{ {
UtilMethods utilMethods = UtilMethods.getInstance(); UtilMethods utilMethods = UtilMethods.getInstance();
java.sql.Timestamp expDate = null; java.sql.Timestamp expDate = null;
int lastDay = 0, iShelfLife = 0; int lastDay = 0, iShelfLife = 0;
iShelfLife = (int)shelfLife; iShelfLife = (int)shelfLife;
......
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