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();
cnt = rs.getInt(1);
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);
if(errString != null && errString.trim().length() > 0)
{
......@@ -407,7 +407,7 @@ conn = getConnection();
}
else
{
System.out.println("call for other site");
System.out.println("call for other site["+tranId+"]");
errString = this.otherSitePostJournal( tranId,journalMap, jourdetList, xtraParams, conn);
if(errString != null && errString.trim().length() > 0)
{
......@@ -876,13 +876,14 @@ conn = getConnection();
pstmt.setTimestamp(2,revDt);
pstmt.setTimestamp(3,revDt);
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(7,amt);
pstmt.setString(8,detRemarks);
pstmt.setString(9,"N");
pstmt.setString(10,"V");
pstmt.setString(11,"Y");
pstmt.setString(11,"N");//Pavan Rane 14aug19[Auto set N]
pstmt.setString(12,revRefSer);
pstmt.setString(13,revRefId);
pstmt.setString(14,(String)journalMap.get("curr_code"));
......@@ -1052,7 +1053,9 @@ conn = getConnection();
if ("Y".equalsIgnoreCase(IBCAAConf))
{
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;
}
......@@ -1063,7 +1066,9 @@ conn = getConnection();
{
IBCAAConf = "Y";
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;
}
......@@ -1085,7 +1090,6 @@ conn = getConnection();
int updCnt = pstmt.executeUpdate();
pstmt.close();
pstmt = null;
} // end of if for reversible jv
//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