Commit 3aa824e2 authored by prane's avatar prane

Advance Receipt Customization(remittance form consideration) in AR Settlement Process

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@216877 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8f741124
......@@ -51,6 +51,7 @@ public class GenerateReceiptPrc extends ProcessEJB implements GenerateReceiptPrc
String sdueDate = "";
String remarks = "";
String suggestAdj="";
String suggestRemit = "";
java.sql.Timestamp dueDate = null;
ArrayList invoiceList = new ArrayList();
boolean amtFlag = true;
......@@ -215,7 +216,7 @@ Put a validation chq amount in filter and total of details matches in case heade
xmlBuff.append("<group0>");
xmlBuff.append("<description>").append("Group0 description").append("</description>");
xmlBuff.append("<Header0>");
StringBuffer subXmlStr = new StringBuffer("");
/*StringBuffer xmlBuffStr = new StringBuffer("<?xml version = \"1.0\"?>");
System.out.println("In GetViewData::["+windowName+"]");
if("generate_receipt_process".equals(windowName))
......@@ -283,8 +284,15 @@ Put a validation chq amount in filter and total of details matches in case heade
{
suggestAdj = "N";
}
//Pavan Rane 20FEB20 Start [Advance Receipt Customization(remittance form consideration)]
suggestRemit = genericUtility.getColumnValue("suggest_remit",headerDom);
if(suggestRemit == null || suggestRemit.trim().length() == 0 || "null".equals(suggestRemit))
{
suggestRemit = "N";
}
//Pavan Rane 20FEB20 End [Advance Receipt Customization(remittance form consideration)]
siteCode = genericUtility.getColumnValue("site_code",headerDom);
System.out.println("siteCode------>"+ siteCode+"suggestAdj----->"+suggestAdj);
System.out.println("siteCode------>"+ siteCode+"suggestAdj----->"+suggestAdj+"] suggestRemit--------->"+suggestRemit+"]");
System.out.println("Serialize Dom["+genericUtility.serializeDom(headerDom));
StringBuffer xmlBuffStr = new StringBuffer("<?xml version = \"1.0\"?>");
......@@ -422,9 +430,96 @@ Put a validation chq amount in filter and total of details matches in case heade
System.out.println("suggest_adj........["+suggestAdj+"]");
HashMap<String, ArrayList<ReceiptBean>> custGrpMap = new HashMap<String, ArrayList<ReceiptBean>>();
ArrayList<ReceiptBean> selectedList = null;
HashMap<String, HashMap<String, ArrayList<RemittBean>>> custRemittMap = new HashMap<String, HashMap<String, ArrayList<RemittBean>>>();
//ArrayList<ReceiptBean> selectedList = null;
try
{
//Pavan Rane 20FEB20 Start [Advance Receipt Customization(remittance form consideration)]
if( "Y".equals(suggestRemit))
{
suggestAdj = "Y";
sql = "SELECT A.TRAN_ID__RCP,B.REF_NO, A.CUST_CODE, A.CHQ_AMT, B.RCP_AMT, C.GROUP_CODE"
+ " FROM RECEIPT_FORM A, RCPDET_FORM B, CUSTOMER C"
+ " WHERE A.TRAN_ID = B.TRAN_ID"
+ " AND A.CUST_CODE = C.CUST_CODE"
+ " AND B.ADJ_METHOD='M'"
+ " AND A.SITE_CODE= ?"
+ " AND A.TRAN_ID__RCP IS NOT NULL "
+ " AND A.TRAN_ID__ADJ IS NULL "
+ " AND A.CUST_CODE IN (SELECT CUST_CODE FROM CUSTOMER WHERE GROUP_CODE IN ( SELECT DISTINCT GROUP_CODE FROM CUSTOMER WHERE GROUP_CODE >= ? AND GROUP_CODE <= ? ) )"
+ " AND A.TRAN_DATE >= ? AND A.TRAN_DATE <= ?"
+ " ORDER BY A.TRAN_DATE";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,siteCode.trim());
pstmt.setString(2,custCodeFrom.trim());
pstmt.setString(3,custCodeTo.trim());
pstmt.setTimestamp(4,dueDate);
pstmt.setTimestamp(5,dueDateTo);
//System.out.println("The getDataSQL Becomes ......:"+sql);
rs = pstmt.executeQuery();
while (rs.next())
{
System.out.println("inside while...................");
String tranIdRcp = checkNull(rs.getString("TRAN_ID__RCP"));
int recCount = checkAdvancedDishnor(tranIdRcp, conn);
System.out.println("check rcpdishnor["+tranIdRcp+"] recCount["+recCount+"]");
if(recCount > 0)
{
System.out.println("continue............Advanced Dishnored["+tranIdRcp+"]");
continue;
}
String refNo = checkNull(rs.getString("REF_NO"));
//String custCode = rs.getString("CUST_CODE");
double chqAmt = rs.getDouble("CHQ_AMT");
double rcpAmt = rs.getDouble("RCP_AMT");
groupCode = checkNull(rs.getString("GROUP_CODE"));
System.out.println("Invoice["+refNo+"] Advanced["+tranIdRcp+"] AdvAmt["+chqAmt+"] invAmt["+rcpAmt+"]");
RemittBean remittBean = new RemittBean();
remittBean.setRcpAmount(new BigDecimal(rs.getDouble("CHQ_AMT")));
remittBean.setRefAmt(new BigDecimal(rs.getDouble("RCP_AMT")));
remittBean.setRefNo(refNo);
remittBean.setTranIdRcp(tranIdRcp);
//System.out.println("(!custRemittMap.containsKey(groupCode))["+(!custRemittMap.containsKey(groupCode))+"]");
if (!custRemittMap.containsKey(groupCode))
{
System.out.println("groupCode not matched");
HashMap<String, ArrayList<RemittBean>> advMap = new HashMap<String, ArrayList<RemittBean>>();
ArrayList<RemittBean> tempList = new ArrayList<RemittBean>();
tempList.add(remittBean);
advMap.put(tranIdRcp, tempList);
custRemittMap.put(groupCode, advMap);
}
else {
System.out.println("else...........1.0");
if(custRemittMap.containsKey(groupCode))
{
System.out.println("else...........1.1");
HashMap<String, ArrayList<RemittBean>> advMaptmp = custRemittMap.get(groupCode);
if (!advMaptmp.containsKey(tranIdRcp))
{
System.out.println("else...........1.2");
ArrayList<RemittBean> tempList = new ArrayList<RemittBean>();
tempList.add(remittBean);
advMaptmp.put(tranIdRcp, tempList);
}
else {
System.out.println("else...........1.3");
ArrayList<RemittBean> tempList = advMaptmp.get(tranIdRcp);
tempList.add(remittBean);
advMaptmp.put(tranIdRcp, tempList);
}
custRemittMap.put(groupCode, advMaptmp);
}
}
//advMap.clear();
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("custRemittMap.size()>>["+custRemittMap.size()+"] custRemittMap>>"+custRemittMap+"]\n\n\n\n");
}//Enf of if( "Y".equals(suggestRemit))
//Pavan Rane 20FEB20 End [Advance Receipt Customization(remittance form consideration)]
//*********Added on 28092006
sql = "SELECT D.REF_NO,D.TRAN_SER,D.REF_DATE,D.TOT_AMT - D.ADJ_AMT ,C.CUST_NAME ,"
+ "' ' BANK_CODE,D.TRAN_DATE,' ' AS CHEQUE_NO,0.0 CHQ_AMOUNT,C.CUST_CODE, " // ADDED BY RAJESH AS ALIAS IS NOT REQUIRED FOR BANK_CODE
......@@ -590,9 +685,9 @@ Put a validation chq amount in filter and total of details matches in case heade
retTabSepStrBuff.append("</Header0>");
retTabSepStrBuff.append("</group0>");
retTabSepStrBuff.append("</DocumentRoot>");
//Pavan Rane 20FEB20 Start [Commented for Advance Receipt Customization(remittance form consideration)]
//added by nandkumar gadkari---------------start--------------1/04/19-----for Remittance form Manual flag
String refNo="",refSer="";
/*String refNo="",refSer="";
int cnt=0;
ArrayList<String> rcpFormRefNo = new ArrayList<String>();
sql = "select b.ref_no ,b.ref_ser from receipt_form a, rcpdet_form b where a.tran_id= b.tran_id and b.adj_method='M' "
......@@ -638,9 +733,9 @@ Put a validation chq amount in filter and total of details matches in case heade
pstmt = null;
cnt =rcpFormRefNo.size();
System.out.println("^^^^^^^rcpFormRefNo rcpFormRefNo["+rcpFormRefNo);
System.out.println("^^^^^^^rcpFormRefNo rcpFormRefNo["+rcpFormRefNo);*/
//added by nandkumar gadkari---------------end--------------1/04/19-----for Remittance form Manual flag
//Pavan Rane 20FEB20 End [Commented for Advance Receipt Customization(remittance form consideration)]
//Added by Pavan R on 24MAY18 [F18BGTP001]- "Suggest adjustments" in Automatic AR settlement filter screen.
if("Y".equalsIgnoreCase(suggestAdj))
{
......@@ -649,11 +744,14 @@ Put a validation chq amount in filter and total of details matches in case heade
System.out.println("*******keyset [ "+sp+" ]******");
}
int gCnt = 1;
for (ArrayList<ReceiptBean> templist : custGrpMap.values())
//for (ArrayList<ReceiptBean> templist : custGrpMap.values())
for (Map.Entry<String, ArrayList<ReceiptBean>> entry : custGrpMap.entrySet())
{
groupCode = entry.getKey();
ArrayList<ReceiptBean> templist = entry.getValue();
BigDecimal tmpVal = new BigDecimal(-1);
System.out.println("Global dom count["+gCnt+"]");
selectedList = new ArrayList<ReceiptBean>();
//selectedList = new ArrayList<ReceiptBean>();
Collections.sort(templist, ReceiptBean.receiptComparator);
//Changes done on 26JUN2018 [To match and select partial amount when collections are treated as advance in system and entries are integrated after invoice entries.]
ArrayList<ReceiptBean> posList = new ArrayList<ReceiptBean>();
......@@ -674,14 +772,14 @@ Put a validation chq amount in filter and total of details matches in case heade
adjAmt = rcpBean.getAdjAmt();
adjustedAmt = rcpBean.getAdjustedAmt();
invAmt = rcpBean.getInvAmt();
refNo = rcpBean.getInvoiceId();// added by nandkumar gadkari on 2/04/19
System.out.println("Global refNo["+refNo+"]"+balAmt);
//refNo = rcpBean.getInvoiceId();// added by nandkumar gadkari on 2/04/19
//System.out.println("Global refNo["+refNo+"]"+balAmt);
//if (balAmt > 0)
if ((balAmt.compareTo(BigDecimal.ZERO) == 1))
{
//totPosAmt = totPosAmt + balAmt;
// added by nandkumar gadkari on 2/04/19-------------start----
if(cnt > 0)
/*if(cnt > 0)
{
System.out.println("cnt cnt["+cnt+"]");
if (rcpFormRefNo.contains(refNo.trim()))
......@@ -695,10 +793,10 @@ Put a validation chq amount in filter and total of details matches in case heade
}
else // added by nandkumar gadkari on 2/04/19 ------------end
{
{*/
totPosAmt = totPosAmt.add(balAmt);
posList.add(rcpBean);
}
//}
}
}
......@@ -719,7 +817,76 @@ Put a validation chq amount in filter and total of details matches in case heade
}
}
System.out.println("***Total Amount Positive[" + totPosAmt + "]Negative[" + totNegAmt + "]");
System.out.println("****POSListSize[" + posList.size()+ "]****NEGListSize[" + negList.size() + "]");
System.out.println("****POSListSize[" + posList.size()+ "]****NEGListSize[" + negList.size() + "]custRemittMap["+custRemittMap.size()+"]");
//Pavan Rane 20FEB20 Start [Advance Receipt Customization(remittance form consideration)]
if("Y".equals(suggestRemit))
{
if(custRemittMap.size() > 0)
{
//HashMap<String, ArrayList<RemittBean>> advMap = custRemittMap.get(groupCode);
//if(advMap == null || advMap.isEmpty())
if(custRemittMap.get(groupCode) == null || (custRemittMap.get(groupCode) != null && custRemittMap.get(groupCode).isEmpty()))
{
/**If there are no adv in Remittance for curernt custcode in selected period then continue*/
System.out.println("There is/are No Adv in Remittance for CustCode["+groupCode+"].....");
continue;
}
else
{
HashMap<String, ArrayList<RemittBean>> advMap = custRemittMap.get(groupCode);/***/
System.out.println("advMap.size()["+advMap.size()+"]");
for (Map.Entry<String, ArrayList<RemittBean>> advEntry : advMap.entrySet())
{
String advReceipt = advEntry.getKey();
ArrayList<RemittBean> invoicelist = advEntry.getValue();
int index = indexOfReference(negList, advReceipt);
System.out.println("Index["+index+"] Current Advance["+advReceipt+"] invoicelist["+invoicelist.size()+"]");
if(index != -1)
{
BigDecimal totAdvAmt = BigDecimal.ZERO;
BigDecimal totinvAmt = BigDecimal.ZERO;
StringBuffer xmlBuffDetail = new StringBuffer();
/**Here populate and match the invoices **/
for(RemittBean remittBean : invoicelist)
{
int invIndex = indexOfReference(posList, remittBean);
System.out.println("Index["+invIndex+"] Invoice...Current Advance["+advReceipt+"]");
if(invIndex != -1)
{
ReceiptBean rcpBean = posList.get(invIndex);
totAdvAmt = remittBean.getRcpAmount();
totinvAmt = totinvAmt.add(remittBean.getRefAmt());
rcpBean.setAdjAmt(remittBean.getRefAmt());
//System.out.println("Invoice rcpBean["+rcpBean+"] invIndex["+invIndex+"]");
xmlBuffDetail.append(generateXmls(detailDom, gCnt, "Y", rcpBean));
gCnt++;
}
}
//if(totAdvAmt >= totinvAmt)
System.out.println("Comparing totAdvAmt["+totAdvAmt+"] totinvAmt["+totinvAmt+"]");
if (totAdvAmt.abs().compareTo(totinvAmt) >= 0)
{
ReceiptBean advRcpBean = negList.get(index);//adv
advRcpBean.setAdjAmt(totinvAmt.negate());
//System.out.println("Advanced rcpBean["+advRcpBean+"] invIndex["+index+"]");
subXmlStr.append(generateXmls(detailDom, gCnt, "Y", advRcpBean));
gCnt++;
subXmlStr.append(xmlBuffDetail);
}else
{
xmlBuffDetail.append("");//to clear invoices detail
System.out.println("continue.....");
continue;
}
}
}//adv loop end
//System.out.println("\n\n\nPAVAN RANE->>>>>xmlBuffStr["+xmlBuff+"]\n\n\n");
//xmlBuff.append(xmlBuff);
}
}
}//End of if("Y".equals(suggestRemit))
else
{ //Pavan Rane 20FEB20 End [Advance Receipt Customization(remittance form consideration)]
// If positive Amt is greater than negative
//if (totPosAmt > totNegAmt*(-1))
if (totPosAmt.compareTo(totNegAmt.multiply(tmpVal)) == 1)
......@@ -886,9 +1053,10 @@ Put a validation chq amount in filter and total of details matches in case heade
gCnt++;
}
}
//Pavan Rane 20FEB20 start [Commented for Advance Receipt Customization(remittance form consideration)]
//added by nandkumar gadkari on 04/04/19---------------start-------------------for Remittance form Manual flag---------
//below loop added to append unselected Positive records after matched selected
if(cnt > 0)
/*if(cnt > 0)
{
for (int i = 0; i < templist.size(); i++) {
......@@ -925,18 +1093,19 @@ Put a validation chq amount in filter and total of details matches in case heade
gCnt++;
}
}
}
}*/
//added by nandkumar gadkari on 04/04/19---------------end-----------------for Remittance form Manual flag-----------
}
}//else end of if("Y".equals(suggestRemit))
//Changes done on 26JUN2018 End
}//end of for (ArrayList templist : custGrpMap.values())
xmlBuff.append("</Header0>");
/*xmlBuff.append("</Header0>");
xmlBuff.append("</group0>");
xmlBuff.append("</DocumentRoot>");
xmlBuff.append("</DocumentRoot>");*/
//System.out.println("xml xmlBuff::::"+xmlBuff);
}//end of suggestion flag
//Pavan R on 24MAY18 End
//Pavan Rane 20FEB20 End [Advance Receipt Customization(remittance form consideration)]
}//try
catch (SQLException e)
{
......@@ -952,6 +1121,10 @@ Put a validation chq amount in filter and total of details matches in case heade
//if suggested adj is Y then display selected/unselected data else exsting will work
if("generate_receipt_process".equals(objName) && "Y".equalsIgnoreCase(suggestAdj))
{
if("Y".equalsIgnoreCase(suggestRemit))
{
xmlBuffStr.append(subXmlStr);
}
xmlBuffStr.append("</Header0>");
xmlBuffStr.append("</group0>");
xmlBuffStr.append("</DocumentRoot>");
......@@ -959,6 +1132,13 @@ Put a validation chq amount in filter and total of details matches in case heade
}
else if("Y".equalsIgnoreCase(suggestAdj))
{
if("Y".equalsIgnoreCase(suggestRemit))
{
xmlBuff.append(subXmlStr);
}
xmlBuff.append("</Header0>");
xmlBuff.append("</group0>");
xmlBuff.append("</DocumentRoot>");
resultString = xmlBuff.toString();
}
else
......@@ -1099,8 +1279,13 @@ conn = getConnection();
chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId");
//Added by Pavan R 10-may-18 to flag in filter on receivable JV creation, to create a confirmed or unconfirmed JV.
jvAutoConf = genericUtility.getColumnValue("jv_auto_conf",headerDom);
suggestRemit = genericUtility.getColumnValue("suggest_remit",headerDom);
if(suggestRemit == null || suggestRemit.trim().length() == 0 || "null".equals(suggestRemit))
{
suggestRemit = "N";
}
entryBatchNo = checkNull(genericUtility.getColumnValue("entry_batch_no", headerDom));//added by Pavan R 30aug18[to added in receivables header]
System.out.println("Pavan----jvAutoConf ["+jvAutoConf+"]entryBatchNo["+entryBatchNo+"]");
System.out.println("Pavan----jvAutoConf ["+jvAutoConf+"]entryBatchNo["+entryBatchNo+"] suggestRemit["+suggestRemit+"]");
//Added by Pavan R 10-may-18 end
siteCode = genericUtility.getColumnValue("site_code",headerDom);
//custCode = genericUtility.getColumnValue("cust_code",headerDom);
......@@ -2812,12 +2997,12 @@ conn = getConnection();
{
//Commented by Manoj dtd 03/05/2014writeLog(filePtr,"[insertReceiptDtl]START:::",true);
java.sql.Timestamp refDate = null,dueDate = null;
String lineNo = "",refNo = "",currCode = "",custCode = "",acctCodeAr = "";
String lineNo = "",refNo = "",currCode = "",custCode = "",acctCodeAr = "", sqlRemit="";
String cctrCodeAr = "",billDisc = "",refSer="";
double exchRateRcv = 0,discount = 0,badDebtAmt = 0,exchRate = 0,diffAmtExch = 0;
double taxAmt = 0,netAmt = 0,adjAmt = 0,rcpAmt = 0;
int lineNoDet = 0;
PreparedStatement pstmt =null;
PreparedStatement pstmt =null, pstmtRemit =null;
String sql = "INSERT INTO RCPDET ( TRAN_ID,REF_SER,REF_NO,REF_DATE,CURR_CODE,EXCH_RATE__RCV,"
+ "DISC_AMT,TAX_AMT,EXCH_RATE,NET_AMT,RCP_AMT,DIFF_AMT__EXCH,CUST_CODE,DUE_DATE,"
......@@ -2827,6 +3012,11 @@ conn = getConnection();
try
{
if( "Y".equals(suggestRemit))
{
sqlRemit = "update receipt_form set tran_id__adj = ?, status = 'X' where tran_id__rcp = ?";
pstmtRemit = conn.prepareStatement(sqlRemit);
}
pstmt = conn.prepareStatement(sql);
for(int invlCtr = 0; invlCtr < invoiceList.size(); invlCtr++)
{
......@@ -2874,7 +3064,8 @@ conn = getConnection();
pstmt.setString(5,currCode);
pstmt.setDouble(6,exchRateRcv);
pstmt.setDouble(7,discount);
pstmt.setDouble(8,taxAmt);
//pstmt.setDouble(8,taxAmt);
pstmt.setDouble(8,0.0); //Pavan Rane 20feb2020[tax_amt to set 0 to handle net_amt>0 Error In RecvJV]
pstmt.setDouble(9,exchRate);
pstmt.setDouble(10,netAmt);
pstmt.setDouble(11,rcpAmt);
......@@ -2889,14 +3080,27 @@ conn = getConnection();
pstmt.setInt(20,lineNoDet);//line number column added by kailas gaikwad on 27/5/2019
pstmt.addBatch();
pstmt.clearParameters(); //Pavan Rane 23jul19[for open cursor issue]
if( "Y".equals(suggestRemit))
{
pstmtRemit.setString(1, tranId);
pstmtRemit.setString(2, refNo);
pstmtRemit.addBatch();
pstmtRemit.clearParameters();
}
}
pstmt.executeBatch();
int cntJV[] = pstmt.executeBatch();
//Pavan Rane 23jul19[for open cursor issue]
pstmt.clearBatch();
pstmt.close();
pstmt = null;
if( "Y".equals(suggestRemit) && cntJV.length > 0)
{
int cntRemit[] = pstmtRemit.executeBatch();
pstmtRemit.close();
pstmtRemit = null;
System.out.println("ReceivableJV-Remittance Detail Update cntRemmit["+cntRemit.length+"]");
}
//Pavan Rane 23jul19 end
//Commented by Manoj dtd 03/05/2014writeLog(filePtr,"[billAmt TO BE + UPDATE ]:::"+billAmt,true);
//Commented by Manoj dtd 03/05/2014writeLog(filePtr,"[billDiscAmt TO BE + UPDATE ]:::"+billDiscAmt,true);
......@@ -3543,11 +3747,75 @@ conn = getConnection();
return objName;
}
//Pavan R on 24MAY18 End
//Pavan Rane 20FEB20 start [Advance Receipt Customization(remittance form consideration)]
public static BigDecimal rounded(BigDecimal aNumber, int prec)
{
return aNumber.setScale(prec, BigDecimal.ROUND_HALF_EVEN);
}
private int indexOfReference(ArrayList<ReceiptBean> refList,String RefNo) throws ITMException, Exception
{
int retVal = -1, ctr = 0;
ReceiptBean rcpBean = null;
//System.out.println("indexOfReference.....refList.size()::["+refList.size()+"]");
for (ctr = 0; ctr < refList.size(); ctr++)
{
rcpBean = (ReceiptBean) refList.get(ctr);
//System.out.println("Find ReceiptBean...["+rcpBean.getInvoiceId()+"] RefNo["+RefNo+"]");
if (checkNull(rcpBean.getInvoiceId()).equals(checkNull(RefNo)))
{
retVal = ctr;
break;
}
}
return retVal;
}
private int indexOfReference(ArrayList<ReceiptBean> refList, RemittBean remittBean) throws ITMException, Exception
{
int retVal = -1, ctr = 0;
ReceiptBean rcpBean = null;
//System.out.println("indexOfReference.....refList.size()::["+refList.size()+"]");
for (ctr = 0; ctr < refList.size(); ctr++)
{
rcpBean = (ReceiptBean) refList.get(ctr);
//System.out.println("Find ReceiptBean------[" + rcpBean.getInvoiceId() + "] RemittBean----[" + remittBean.getRefNo()+"]");
if (checkNull(rcpBean.getInvoiceId()).equals(checkNull(remittBean.getRefNo())))
{
retVal = ctr;
break;
}
}
return retVal;
}
private int checkAdvancedDishnor(String RefNo, Connection conn) throws ITMException
{
PreparedStatement pstmt = null;
String sql = "";
ResultSet rs = null;
int recCount = 0;
try
{
sql = "select count(*) from rcpdishnr where receipt_no = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, RefNo);
rs = pstmt.executeQuery();
if (rs.next())
{
recCount = rs.getInt(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
} catch (SQLException se)
{
System.out.println("SQLException :GenerateReceiptPrc :checkAdvancedDishnor(String RefNo, Connection conn).." + se.getMessage());
se.printStackTrace();
throw new ITMException(se);
}
return recCount;
}
//Pavan Rane 20FEB20 end [Advance Receipt Customization(remittance form consideration)]
}//class
......@@ -3792,4 +4060,44 @@ class ReceiptBean
};
}
//Pavan R on 24MAY18 End
\ No newline at end of file
//Pavan Rane 20FEB20 start [Advance Receipt Customization(remittance form consideration)]
class RemittBean
{
private String tranIdRcp = "";
private String refNo = "";
private String custCode = "";
private BigDecimal rcpAmount = new BigDecimal(0.0);
private BigDecimal refAmt = new BigDecimal(0.0);
public String getTranIdRcp() {
return tranIdRcp;
}
public void setTranIdRcp(String tranIdRcp) {
this.tranIdRcp = tranIdRcp;
}
public String getRefNo() {
return refNo;
}
public void setRefNo(String refNo) {
this.refNo = refNo;
}
public BigDecimal getRcpAmount() {
return rcpAmount;
}
public void setRcpAmount(BigDecimal rcpAmount) {
this.rcpAmount = rcpAmount;
}
public BigDecimal getRefAmt() {
return refAmt;
}
public void setRefAmt(BigDecimal refAmt) {
this.refAmt = refAmt;
}
/*@Override
public String toString() {
return "\n>>>>>>>>>>>>>>>RemittBean<<<<<<<<<<<<<<<<<<<<<<<<<<\n"
+ "tranIdRcp[" + tranIdRcp + "] refNo [" + refNo + "]\n"
+ "rcpAmount["+ rcpAmount + "] refAmt [" + refAmt + "]\n"
+ ">>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n";
}*/
}
//Pavan Rane 20FEB20 end [Advance Receipt Customization(remittance form consideration)]
\ No newline at end of file
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