Commit d824014d authored by prane's avatar prane

Accounting of Reversible JV is not posted & the auto JV created in the same site

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@205233 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ec024a0b
...@@ -398,7 +398,7 @@ conn = getConnection(); ...@@ -398,7 +398,7 @@ conn = getConnection();
cnt = rs.getInt(1); cnt = rs.getInt(1);
if(cnt == 0) if(cnt == 0)
{ {
System.out.println("call for normal site"); System.out.println("call for normal site["+tranId+"]");
errString = this.gbfPostJournal(tranId,journalMap, jourdetList, xtraParams, conn); errString = this.gbfPostJournal(tranId,journalMap, jourdetList, xtraParams, conn);
if(errString != null && errString.trim().length() > 0) if(errString != null && errString.trim().length() > 0)
{ {
...@@ -407,7 +407,7 @@ conn = getConnection(); ...@@ -407,7 +407,7 @@ conn = getConnection();
} }
else else
{ {
System.out.println("call for other site"); System.out.println("call for other site["+tranId+"]");
errString = this.otherSitePostJournal( tranId,journalMap, jourdetList, xtraParams, conn); errString = this.otherSitePostJournal( tranId,journalMap, jourdetList, xtraParams, conn);
if(errString != null && errString.trim().length() > 0) if(errString != null && errString.trim().length() > 0)
{ {
...@@ -876,13 +876,14 @@ conn = getConnection(); ...@@ -876,13 +876,14 @@ conn = getConnection();
pstmt.setTimestamp(2,revDt); pstmt.setTimestamp(2,revDt);
pstmt.setTimestamp(3,revDt); pstmt.setTimestamp(3,revDt);
pstmt.setString(4,(String)journalMap.get("fin_entity")); pstmt.setString(4,(String)journalMap.get("fin_entity"));
pstmt.setString(5,(String)journalMap.get("site_code")); //pstmt.setString(5,(String)journalMap.get("site_code")); //Pavan Rane 14aug19[to set reverse sitecode]
pstmt.setString(5, siteCodeRev);
pstmt.setDouble(6,amt); pstmt.setDouble(6,amt);
pstmt.setDouble(7,amt); pstmt.setDouble(7,amt);
pstmt.setString(8,detRemarks); pstmt.setString(8,detRemarks);
pstmt.setString(9,"N"); pstmt.setString(9,"N");
pstmt.setString(10,"V"); pstmt.setString(10,"V");
pstmt.setString(11,"Y"); pstmt.setString(11,"N");//Pavan Rane 14aug19[Auto set N]
pstmt.setString(12,revRefSer); pstmt.setString(12,revRefSer);
pstmt.setString(13,revRefId); pstmt.setString(13,revRefId);
pstmt.setString(14,(String)journalMap.get("curr_code")); pstmt.setString(14,(String)journalMap.get("curr_code"));
...@@ -1052,7 +1053,9 @@ conn = getConnection(); ...@@ -1052,7 +1053,9 @@ conn = getConnection();
if ("Y".equalsIgnoreCase(IBCAAConf)) if ("Y".equalsIgnoreCase(IBCAAConf))
{ {
errString = gbfRetrieveJournal(tranIDSer,xtraParams,conn); errString = gbfRetrieveJournal(tranIDSer,xtraParams,conn);
if(errString != null && errString.trim().length() > 0) System.out.println("gbfRetrieveJournal..1056..tranIDSer["+tranIDSer+"]errString["+errString+"]");
//if(errString != null && errString.trim().length() > 0) //Pavan Rane 14aug19
if(errString != null && errString.trim().length() > 0 && errString.indexOf("CONFSUCCES") == -1)
{ {
return errString; return errString;
} }
...@@ -1063,7 +1066,9 @@ conn = getConnection(); ...@@ -1063,7 +1066,9 @@ conn = getConnection();
{ {
IBCAAConf = "Y"; IBCAAConf = "Y";
errString= gbfRetrieveJournal (tranIDSer,xtraParams,conn); errString= gbfRetrieveJournal (tranIDSer,xtraParams,conn);
if(errString != null && errString.trim().length() > 0) System.out.println("gbfRetrieveJournal..1068..tranIDSer["+tranIDSer+"]errString["+errString+"]");
//if(errString != null && errString.trim().length() > 0) //Pavan Rane 14aug19
if(errString != null && errString.trim().length() > 0 && errString.indexOf("CONFSUCCES") == -1)
{ {
return errString; return errString;
} }
...@@ -1085,7 +1090,6 @@ conn = getConnection(); ...@@ -1085,7 +1090,6 @@ conn = getConnection();
int updCnt = pstmt.executeUpdate(); int updCnt = pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} // end of if for reversible jv } // end of if for reversible jv
//conn.commit(); //conn.commit();
......
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