Subversion Repositories SmartDukaan

Rev

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

Rev 33850 Rev 33857
Line 460... Line 460...
460
        if (flag) {
460
        if (flag) {
461
            if (isApprover || isAuthUser) {
461
            if (isApprover || isAuthUser) {
462
                loiForm.setLoiApprover(email);
462
                loiForm.setLoiApprover(email);
463
                loiForm.setLoiApproved(flag);
463
                loiForm.setLoiApproved(flag);
464
                model.addAttribute("response1", mvcResponseSender.createResponseString(true));
464
                model.addAttribute("response1", mvcResponseSender.createResponseString(true));
465
                loiFormService.checkLoiDetailsCompletion(loiForm);
-
 
466
            } else {
465
            } else {
467
                throw new ProfitMandiBusinessException("Failed in Authority check ", "Read", "Sorry " + authRepository.selectByEmailOrMobile(loginDetails.getEmailId()).getName() + " you have no authority to Approve this Loi Form ,Only reporting manager and upper can Approve");
466
                throw new ProfitMandiBusinessException("Failed in Authority check ", "Read", "Sorry " + authRepository.selectByEmailOrMobile(loginDetails.getEmailId()).getName() + " you have no authority to Approve this Loi Form ,Only reporting manager and upper can Approve");
468
            }
467
            }
469
        } else {
468
        } else {
470
            if (isApprover || isAuthUser) {
469
            if (isApprover || isAuthUser) {