Subversion Repositories SmartDukaan

Rev

Rev 34755 | Rev 34770 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34755 Rev 34766
Line 3559... Line 3559...
3559
            throw new ProfitMandiBusinessException("loanstament", loanStatement.getLoanId(), "Invalid LoanId");
3559
            throw new ProfitMandiBusinessException("loanstament", loanStatement.getLoanId(), "Invalid LoanId");
3560
        }
3560
        }
3561
    }
3561
    }
3562
 
3562
 
3563
    public void loanSettlement() throws Exception {
3563
    public void loanSettlement() throws Exception {
3564
        List<Loan> loans = loanRepository.selectAllActiveLoan().stream().filter(x -> x.canBeSettled()).collect(toList());
3564
        List<Loan> loans = loanRepository.selectAllActiveLoanForSettlement().stream().filter(x -> x.canBeSettled()).collect(toList());
3565
        //TODO:Upto here
3565
        //TODO:Upto here
3566
        if (!loans.isEmpty()) {
3566
        if (!loans.isEmpty()) {
3567
 
3567
 
3568
            for (Loan loan : loans) {
3568
            for (Loan loan : loans) {
3569
                LOGGER.info("Loan - {},  {}", loan.getId(), loan.canBeSettled());
3569
                LOGGER.info("Loan - {},  {}", loan.getId(), loan.canBeSettled());