Commit a6c5acf5 authored by msharma's avatar msharma

Reason code updated in receivables


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94013 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 20683b0b
......@@ -10570,6 +10570,7 @@ public class FinCommon
String refType="",autoRcp="",lineNoRef="";
String gpNo="",gpDate="",custRefNo="",custRefDate="",custRefAmt="";
String keyString = "",recvTranID = "";
String reasCode="";
double totAmt=0,diffAmt=0,adjAmt=0,taxAmt=0,exchRate=0,discount=0,mrpValue=0;
......@@ -10610,6 +10611,7 @@ public class FinCommon
salesPers2 = (String)receivablesMap.get("sales_pers__2");
finScheme = (String)receivablesMap.get("fin_scheme");
lineNoRef = (String)receivablesMap.get("line_no__ref");
reasCode=(String)receivablesMap.get("reas_code");
if(lineNoRef == null )
{
......@@ -10669,8 +10671,8 @@ public class FinCommon
+" CUST_CODE,ACCT_CODE,CCTR_CODE,DUE_DATE,FIN_ENTITY,SITE_CODE,TOT_AMT,ADJ_AMT,STATUS, "
+" STAT_DATE,DISCOUNT,TAX_AMT,AUTO_RCP,BANK_CODE,RECD,REF_TYPE,CR_TERM,SALES_PERS,ITEM_SER, "
+" SALES_PERS__1,SALES_PERS__2,CONTACT_CODE,EFF_DATE,FIN_SCHEME,REF_SER__ORG,SALE_ORDER, "
+" LINE_NO__REF,mrp_value,exp_rcp_date,gp_no,gp_date,cust_ref_no,cust_ref_date,cust_ref_amt) "
+" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ";
+" LINE_NO__REF,mrp_value,exp_rcp_date,gp_no,gp_date,cust_ref_no,cust_ref_date,cust_ref_amt,reas_code) "
+" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,recvTranID);
......@@ -10714,6 +10716,7 @@ public class FinCommon
pstmt.setString(39,custRefNo);
pstmt.setString(40,custRefDate);
pstmt.setString(41,custRefAmt);
pstmt.setString(42,reasCode);//Manoj dtd 18/12/2013 reason code set in receivables
//pstmt.executeUpdate();
int count = pstmt.executeUpdate();
if(count < 1)
......
......@@ -342,7 +342,21 @@ public class MiscDrCrRcpConf extends ActionHandlerEJB implements MiscDrCrRcpConf
pstmt.close();
pstmt = null;
miscRcpMap = new HashMap();
//Manoj dtd 18/12/2013 reason code set in miscRcpMap to update in receivables
pstmt=conn.prepareStatement("SELECT MAX(REAS_CODE) FROM MISC_DRCR_RDET WHERE TRAN_ID=? AND REAS_CODE IS NOT NULL");
pstmt.setString(1, tranId);
rs=pstmt.executeQuery();
if(rs.next())
{
miscRcpMap.put("reas_code",rs.getString(1));
}
rs.close();
rs=null;
pstmt.close();
pstmt=null;
miscRcpMap.put("tran_date",tranDate);
miscRcpMap.put("tran_ser",tranSer);
miscRcpMap.put("eff_date",effDate);
......
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