Subversion Repositories SmartDukaan

Rev

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

Rev 33852 Rev 33853
Line 610... Line 610...
610
    }
610
    }
611
 
611
 
612
 
612
 
613
//    adjusting loan for specific loan if loan is not adjusting and other loan is adjusting
613
//    adjusting loan for specific loan if loan is not adjusting and other loan is adjusting
614
 
614
 
615
    @RequestMapping(value = "/settle-loan", method = RequestMethod.POST)
615
    @RequestMapping(value = "/settle-loan", method = RequestMethod.GET)
616
    public String settleAndCreateLoanById(HttpServletRequest request, @RequestParam int loanId, @RequestParam int fofoId, Model model) throws Exception {
616
    public String settleAndCreateLoanById(HttpServletRequest request, @RequestParam int loanId, @RequestParam int fofoId, Model model) throws Exception {
617
        Loan loan = loanRepository.selectByLoanId(loanId);
617
        Loan loan = loanRepository.selectByLoanId(loanId);
618
        double loanAmount = loan.getPendingAmount().doubleValue();
618
        double loanAmount = loan.getPendingAmount().doubleValue();
619
 
619
 
620
        if (loanAmount > 0) {
620
        if (loanAmount > 0) {