Beispiel #1
0
 void updateIndividualLoan(
     final Date disbursementDate,
     final Short noOfInstallments,
     final LoanAccountDetailsDto loanAccountDetail,
     LoanBO individualLoan)
     throws AccountException {
   String loanAmount = loanAccountDetail.getLoanAmount();
   Money loanMoney =
       new Money(individualLoan.getCurrency(), !loanAmount.equals("-") ? loanAmount : "0");
   individualLoan.updateLoan(
       disbursementDate,
       noOfInstallments,
       loanMoney,
       !businessActivityIsEmpty(loanAccountDetail)
           ? Integer.valueOf(loanAccountDetail.getBusinessActivity())
           : null);
 }
Beispiel #2
0
 private boolean businessActivityIsEmpty(LoanAccountDetailsDto loanAccountDetail) {
   String businessActivity = loanAccountDetail.getBusinessActivity();
   return StringUtils.isBlank(businessActivity) || businessActivity.equals("-");
 }