Commit 169cf7ed authored by msalla's avatar msalla

ERROR IN FUND TRANSFER S0001 SITE CASH BOOK TO S0003 SITE CASH BOOK:there is...

ERROR IN FUND TRANSFER S0001 SITE CASH BOOK TO S0003 SITE CASH BOOK:there is no effect gone for below receipt transaction in sundry bal and bank tran log.chq_amt set 0

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@215011 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3e2697fc
...@@ -200,6 +200,8 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt ...@@ -200,6 +200,8 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
double rcpAdvBkingAmt=0.0,totAmtdet=0.0,diffvalue=0.0,rcpPkCreditAmt=0.0;//END double rcpAdvBkingAmt=0.0,totAmtdet=0.0,diffvalue=0.0,rcpPkCreditAmt=0.0;//END
UtilMethods utl = new UtilMethods(); UtilMethods utl = new UtilMethods();
double epcAmount=0; double epcAmount=0;
String netAmtDom=null;
double netAmt=0.0;
try try
{ {
finCommon = new FinCommon(); finCommon = new FinCommon();
...@@ -543,7 +545,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt ...@@ -543,7 +545,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{ {
acctCodeBal = this.genericUtility.getColumnValue("acct_code__bal", dom); acctCodeBal = this.genericUtility.getColumnValue("acct_code__bal", dom);
chqAmt = E12GenericUtility.checkNull(getColumnValue("chq_amt", dom));// add by kailasG on 12-dec-19 chqAmt = this.genericUtility.getColumnValue("chq_amt", dom);// add by kailasG on 12-dec-19
if(chqAmt !=null && chqAmt.trim().length()>0) if(chqAmt !=null && chqAmt.trim().length()>0)
{ {
chqAmount=Double.parseDouble(chqAmt); chqAmount=Double.parseDouble(chqAmt);
...@@ -1184,6 +1186,41 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt ...@@ -1184,6 +1186,41 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
} }
// Added by PriyankaC item_ser validation.11Sep2019[END] // Added by PriyankaC item_ser validation.11Sep2019[END]
// Added by Monika salla for chq_amt validation.10- Jan -2020[start]
else if (childNodeName.equalsIgnoreCase("chq_amt"))
{
//System.out.println("inside chq_amt");
tranType = checkNull(this.genericUtility.getColumnValue("tran_type", dom));
chqAmt = this.genericUtility.getColumnValue("chq_amt", dom);
netAmtDom= this.genericUtility.getColumnValue("net_amt", dom);
if(chqAmt !=null && chqAmt.trim().length()>0)
{
chqAmount=Double.parseDouble(chqAmt);
}
else
{
chqAmount=0.0;
}
if(netAmtDom !=null && netAmtDom.trim().length()>0)
{
netAmt=Double.parseDouble(netAmtDom);
}
else
{
netAmt=0.0;
}
if(!"J".equalsIgnoreCase(tranType.trim())) // add condition to check tran_type
{
//System.out.println("tran_type:["+tranType+"] cheque Amount["+chqAmount+" ] net AMT ["+netAmt);
if(chqAmount == 0.0D ||(netAmt> chqAmount))
{
// System.out.println("inside validationn/////");
errCode = "VTRCHQAMT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}//end
/** /**
* VALLABH KADAM [01/OCT/15] * VALLABH KADAM [01/OCT/15]
* END * END
...@@ -1523,6 +1560,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt ...@@ -1523,6 +1560,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
lineNoRef = this.genericUtility.getColumnValue("line_no__ref", dom); lineNoRef = this.genericUtility.getColumnValue("line_no__ref", dom);
//added by monika-04 sept 2019 //added by monika-04 sept 2019
chqAmt=this.genericUtility.getColumnValue("chq_amt", dom1); chqAmt=this.genericUtility.getColumnValue("chq_amt", dom1);
if(chqAmt != null && chqAmt.trim().length()>0) if(chqAmt != null && chqAmt.trim().length()>0)
{ {
chqAmount=Double.parseDouble(chqAmt); chqAmount=Double.parseDouble(chqAmt);
......
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