Subversion Repositories SmartDukaan

Rev

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

Rev 33162 Rev 33163
Line 3659... Line 3659...
3659
                if (interestAmount == null) {
3659
                if (interestAmount == null) {
3660
                    interestAmount = (double) 0;
3660
                    interestAmount = (double) 0;
3661
                }
3661
                }
3662
                double principalAmount = loanStatusAmount.get(LoanReferenceType.PRINCIPAL);
3662
                double principalAmount = loanStatusAmount.get(LoanReferenceType.PRINCIPAL);
3663
                //if it can be settled
3663
                //if it can be settled
3664
                if (userWallet.getAmount() >= 100 || userWallet.getAmount() >= interestAmount + principalAmount) {
3664
                if (userWallet.getAmount() >= 100 || userWallet.getAmount() > Math.abs(interestAmount + principalAmount)) {
3665
                    double paidAmount = 0;
3665
                    double paidAmount = 0;
3666
                    if (userWallet.getAmount() > Math.abs(interestAmount)) {
3666
                    if (userWallet.getAmount() > Math.abs(interestAmount)) {
3667
 
3667
 
3668
                        LOGGER.info("interestAmount b {}", interestAmount);
3668
                        LOGGER.info("interestAmount b {}", interestAmount);
3669
 
3669