Commit 11016c18 authored by ssalve's avatar ssalve

Sarita : Committed changes on 23-10-2019

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@210441 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a4e70b53
......@@ -622,9 +622,39 @@ public class PerkClaimIC extends ValidatorEJB implements PerkClaimICLocal, PerkC
{
System.out.println("TEST LENGTH="+parentNodeListLength);
parentNode = parentNodeList.item(ctr);
double claimAmount = Double.parseDouble(genericUtility.getColumnValueFromNode( "claim_amt", parentNodeList.item(ctr) )== null?"0":genericUtility.getColumnValueFromNode( "claim_amt", parentNodeList.item(ctr) ));
double balAmount = Double.parseDouble(genericUtility.getColumnValueFromNode( "amt_bal", parentNodeList.item(ctr) )== null?"0":genericUtility.getColumnValueFromNode( "amt_bal", parentNodeList.item(ctr) ));
//Modified by sarita on 05-10-2019 [START]
double claimAmount = 0.0;
double balAmount = 0.0;
//claimAmount = Double.parseDouble(genericUtility.getColumnValueFromNode( "claim_amt", parentNodeList.item(ctr) )== null?"0":genericUtility.getColumnValueFromNode( "claim_amt", parentNodeList.item(ctr) ));
//balAmount = Double.parseDouble(genericUtility.getColumnValueFromNode( "amt_bal", parentNodeList.item(ctr) )== null?"0":genericUtility.getColumnValueFromNode( "amt_bal", parentNodeList.item(ctr) ));
try
{
claimAmount = Double.parseDouble(genericUtility.getColumnValueFromNode( "claim_amt", parentNodeList.item(ctr) )== null?"0":genericUtility.getColumnValueFromNode( "claim_amt", parentNodeList.item(ctr) ));
}
catch(Exception e)
{
errCode = "VTINAMOUNT";
errList.add(errCode);
errFields.add("claim_amt");
}
try
{
balAmount = Double.parseDouble(genericUtility.getColumnValueFromNode( "amt_bal", parentNodeList.item(ctr) )== null?"0":genericUtility.getColumnValueFromNode( "amt_bal", parentNodeList.item(ctr) ));
}
catch(Exception e)
{
balAmount = 0;
}
System.out.println("Full amy=="+fullAmt+" "+balAmount+" "+claimAmount);
if(claimAmount <= 0)
{
errCode = "VTLNAMT";
errList.add(errCode);
errFields.add("claim_amt");
}
//Modified by sarita on 05-10-2019 [END]
if("Y".equalsIgnoreCase(fullAmt))
{
if(balAmount != claimAmount)
......@@ -1083,6 +1113,12 @@ public class PerkClaimIC extends ValidatorEJB implements PerkClaimICLocal, PerkC
}
valueXmlString.append( "<adjust_loan><![CDATA[" ).append( "Y" ).append( "]]></adjust_loan>\r\n" );
valueXmlString.append( "<full_amt><![CDATA[" ).append( "Y" ).append( "]]></full_amt>\r\n" );
//Modified by sarita on 05-OCT-2019 [START]
valueXmlString.append( "<cont_voucher><![CDATA[" ).append( "N" ).append( "]]></cont_voucher>\r\n" );
valueXmlString.append( "<unapp_loans><![CDATA[" ).append( "Y" ).append( "]]></unapp_loans>\r\n" );
valueXmlString.append( "<resigned><![CDATA[" ).append( "N" ).append( "]]></resigned>\r\n" );
valueXmlString.append( "<multi_year_claim><![CDATA[" ).append( "N" ).append( "]]></multi_year_claim>\r\n" );
//Modified by sarita on 05-OCT-2019 [END]
valueXmlString.append( "<payroll_voucher><![CDATA[" ).append( "V" ).append( "]]></payroll_voucher>\r\n" );
valueXmlString.append( "<pay_mode><![CDATA[" ).append( "Q" ).append( "]]></pay_mode>\r\n" );
//Added by sarita on 27-sep-19 [START]
......
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