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
if("Y".equalsIgnoreCase(invLink))
{
//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);
if(ls_inv_online.equalsIgnoreCase("NULLFOUND"))
{
......@@ -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(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.setString(1,stationFrom);
rs = pstmt.executeQuery();
......@@ -7528,7 +7529,8 @@ public String getTaxEnv(String stationFrom ,String stationTo, String taxChap, St
rs.close();
rs=null;
pstmt.close();
pstmt=null;
pstmt=null; */
sql="SELECT tax_env "
+" FROM tenvstan "
+" WHERE state_code__fr = ? and " //state code from
......@@ -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");
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 "
+" where tax_env = ? "
+" and status_date <= ? ";
......@@ -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
{
UtilMethods utilMethods = UtilMethods.getInstance();
UtilMethods utilMethods = UtilMethods.getInstance();
java.sql.Timestamp expDate = null;
int lastDay = 0, iShelfLife = 0;
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