Commit 1d2000c9 authored by kdabholkar's avatar kdabholkar

to commit changes of updation of Sync operation

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@171490 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f166f9bf
......@@ -14387,7 +14387,7 @@ public class GstDataPrc extends ProcessEJB implements GstDataPrcLocal,GstDataPrc
+" 0 as SR_NO__OLD,"
// +" 'G' as LINE_TYPE,"// -- G – Goods, S – Serice
// +" case when it.item_code is null then 'S' else 'G' end as LINE_TYPE, "
+" ' ' as as LINE_TYPE, "
+" ' ' as LINE_TYPE, "
+" ' ' as GS_CODE, ";
if ("db2".equalsIgnoreCase(CommonConstants.DB_NAME ))
{
......@@ -14947,7 +14947,44 @@ public class GstDataPrc extends ProcessEJB implements GstDataPrcLocal,GstDataPrc
gstDataSink = distCommon.getDisparams("999999", "GST_DATA_SYNC", connGST);
System.out.println("GST_DATA_SYNC ["+gstDataSink+"]");
System.out.println("sitecode::"+sitecode);
if(sitecode == null || sitecode.trim().length() == 0)
{
//retString = itmDBAccessEJB.getErrorString("","INVPRD","","",connLocal);
retString = itmDBAccessEJB.getErrorString("","VTBLNKSIT","","",connGST);
return retString;
}
sql="SELECT COUNT(1) AS CNT FROM SITEREGNO WHERE REG_NO= ? AND ref_code='OPTNG_SITE' ";
pstmt = connGST.prepareStatement(sql);
pstmt.setString(1, sitecode);
rs = pstmt.executeQuery();
if(rs.next())
{
siteCnt = rs.getInt("CNT");
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs = null;
}
System.out.println("sitecnt=::"+siteCnt);
if (siteCnt == 0)
{
System.out.println("Site code not found in site master");
retString = itmDBAccessEJB.getErrorString("","CNDSITINV","","",connGST);
return retString;
}
/* commented by kaustubh on 7 sep 2017*/
/*if(("NULLFOUND".equals(gstDataSink) || gstDataSink == null || gstDataSink.trim().length() == 0))
{
......@@ -14960,7 +14997,7 @@ public class GstDataPrc extends ProcessEJB implements GstDataPrcLocal,GstDataPrc
{
GetGstTableData gstDataSinkObj = new GetGstTableData();
retString = gstDataSinkObj.getGstTableData("", xtraParams, "" ,connGST);
retString = gstDataSinkObj.getGstTableData("", xtraParams, "" ,sitecode,connGST);
System.out.println("Return String from GST_DATA_SYNC["+retString+"]");
}
......@@ -23078,7 +23115,8 @@ public class GstDataPrc extends ProcessEJB implements GstDataPrcLocal,GstDataPrc
docDate = rsSelHdr.getTimestamp("DOC_DATE");
//gstTranId = ( generateTranId( "w_gstr", loginSiteCode, currDateStr, connLocal) );
gstTranId = ( generateTranId( "w_gstr", loginSiteCode, currDateStr, connGST) );
// gstTranId = ( generateTranId( "w_gstr", loginSiteCode, currDateStr, connGST) );
gstTranId = ( generateTranId( "w_gstr", sitecode, currDateStr, connGST) );
System.out.println("Tran ID generated for tranSer ["+tranSer+"] ["+gstTranId+"]");
System.out.println("TRAN_ID__REF is"+tranidRef);
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