Merge pull request #1268 from bharathc27/test1

guaranterdomainserviceissue
This commit is contained in:
Vishwas Babu A J
2015-02-10 02:37:49 -08:00
@@ -378,8 +378,9 @@ public class GuarantorDomainServiceImpl implements GuarantorDomainService {
BigDecimal amountForRelease = loanTransaction.getPrincipalPortion(); BigDecimal amountForRelease = loanTransaction.getPrincipalPortion();
BigDecimal totalGuaranteeAmount = loan.getGuaranteeAmount(); BigDecimal totalGuaranteeAmount = loan.getGuaranteeAmount();
BigDecimal principal = loan.getPrincpal().getAmount(); BigDecimal principal = loan.getPrincpal().getAmount();
if((amountForRelease!=null)&&(totalGuaranteeAmount!=null))
amountForRelease = amountForRelease.multiply(totalGuaranteeAmount).divide(principal); {
amountForRelease = amountForRelease.multiply(totalGuaranteeAmount).divide(principal,this.roundingMode);
List<DepositAccountOnHoldTransaction> accountOnHoldTransactions = new ArrayList<>(); List<DepositAccountOnHoldTransaction> accountOnHoldTransactions = new ArrayList<>();
BigDecimal amountLeft = calculateAndRelaseGuarantorFunds(externalGuarantorList, guarantorGuarantee, amountForRelease, BigDecimal amountLeft = calculateAndRelaseGuarantorFunds(externalGuarantorList, guarantorGuarantee, amountForRelease,
@@ -395,6 +396,7 @@ public class GuarantorDomainServiceImpl implements GuarantorDomainService {
this.guarantorFundingRepository.save(externalGuarantorList); this.guarantorFundingRepository.save(externalGuarantorList);
} }
} }
}
} }