Commit d2be7703 authored by msalla's avatar msalla

How to update Reference information in confirmed transaction - In General:

PO Receipt ID  - 4119OT008  - need to change invoice no - 86 to 89.

Due to GST , we need to match reference data and this error ( human error ...you can't stop ) ...how to change confirmed transaction reference information only.

I am looking for General option to change reference data after confirmation. how to do that ?
example transaction like -  In PO Receipt, Po return, Sales Return , Purchase Voucher,....may be more and column value ( like actual receipt no, date, party invoice  no & date, remark,....)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@208076 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7b0cb006
......@@ -4,7 +4,7 @@
Date : 19/01/09
Author: Manazir Hasan
********************************************************/
********************************************************/
package ibase.webitm.ejb.dis;
import ibase.webitm.utility.*;
......@@ -175,7 +175,9 @@ public class ReceiptExRefPrc extends ProcessEJB implements ReceiptExRefPrcLocal,
Node parentNode = null;
Node childNode = null;
ConnDriver connDriver = new ConnDriver();
//addedd by monika 19 sept 2019
String chpartner=null;
//end
try
{
System.out.println("xtraParams :::::::::::::::::::::::::::::::::: "+xtraParams);
......@@ -193,25 +195,41 @@ public class ReceiptExRefPrc extends ProcessEJB implements ReceiptExRefPrcLocal,
//tranId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"tran_id");
tranId = genericUtility.getColumnValue("tran_id",headerDom);
System.out.println("tranId>>>>>>>>>>>>>"+tranId);
sql = "select confirmed from porcp where tran_id = '"+tranId+"' " ;
//commented by monika on 19 sept 2019
// sql = "select confirmed from porcp where tran_id = '"+tranId+"' " ;
//addedd by monika on 19 sept 2019
sql = "select confirmed,channel_partner from porcp where tran_id = '"+tranId+"' " ;
pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery();
if(rs.next())
{
confirmed = rs.getString(1) == null ? "N" : rs.getString(1);
chpartner= checkNull( rs.getString("channel_partner")); //addedd by monika on 19 sept 2019
}
pstmt.close();
pstmt = null;
rs.close();
rs= null;
//ADDED BY MONIKA S -0N 22 AUGUST 2019-TO SHOW MESSAGE TO USER WETHER RECEIPT IS CONFIRMED OR NOT.
if("N".equalsIgnoreCase(confirmed))
{
errCode = "RCPNOTCONF";
errString =itmDBAccessEJB.getErrorString("updated",errCode,chgUser,"",conn);
return (errString);//added by monika 23 sept 2019
}//END
pstmt.close();
pstmt = null;
rs.close();
rs= null;
//ADDED BY MONIKA -ON 20 SEPT TO CHECK channel partner
if("Y".equalsIgnoreCase(confirmed))
{
//System.out.println("receipt status:"+confirmed);
if("Y".equalsIgnoreCase(chpartner))
{
errCode = "VINVCHNRCP";
errString =itmDBAccessEJB.getErrorString("updated",errCode,chgUser,"",conn);
return (errString);//added by monika 23 sept 2019
}
}
//end
// code to getn coloumn value detail
//-------------detail 1--------------------------
parentNodeList = detailDom.getElementsByTagName("Detail1");
......@@ -368,7 +386,6 @@ public class ReceiptExRefPrc extends ProcessEJB implements ReceiptExRefPrcLocal,
conn.commit();
}
}
}
catch(Exception e)
{
......@@ -409,7 +426,19 @@ public class ReceiptExRefPrc extends ProcessEJB implements ReceiptExRefPrcLocal,
System.out.println("returning from ImportDataPrcEJB "+errString);
return (errString);
} //end process
//added by monika 19 sept 2019
private String checkNull(String str)
{
if(str == null)
{
return "";
}
else
{
return str ;
}
}//end
// fuctions for transfering data
......
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