Subversion Repositories SmartDukaan

Rev

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

Rev 37815 Rev 37819
Line 270... Line 270...
270
            isDocApprover = true;
270
            isDocApprover = true;
271
        }
271
        }
272
        boolean isAgreedBrandFeeChanger = agreedBrandFeeChangerEmail.stream().anyMatch(x -> x.equals(email));
272
        boolean isAgreedBrandFeeChanger = agreedBrandFeeChangerEmail.stream().anyMatch(x -> x.equals(email));
273
        List<String> authEmails = Arrays.asList("raj.singh@smartdukaan.com", "kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com");
273
        List<String> authEmails = Arrays.asList("raj.singh@smartdukaan.com", "kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com");
274
        boolean isAuthUser = authEmails.stream().anyMatch(x -> x.equals(email));
274
        boolean isAuthUser = authEmails.stream().anyMatch(x -> x.equals(email));
275
        boolean isFinanceL1 = csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_ACCOUNTS, EscalationType.L1)
275
        boolean isAccountsUser = csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_ACCOUNTS)
276
                .stream().anyMatch(x -> email.equals(x.getEmailId()));
276
                .stream().anyMatch(x -> email.equals(x.getEmailId()));
277
        List<LoiFormModel> pendingFormList = loiFormService.pendingFormList(email);
277
        List<LoiFormModel> pendingFormList = loiFormService.pendingFormList(email);
278
        model.addAttribute("isDocApprover", isDocApprover);
278
        model.addAttribute("isDocApprover", isDocApprover);
279
        model.addAttribute("isAuthUser", isAuthUser);
279
        model.addAttribute("isAuthUser", isAuthUser);
280
        model.addAttribute("isFinanceL1", isFinanceL1);
280
        model.addAttribute("isAccountsUser", isAccountsUser);
281
        model.addAttribute("isAgreedBrandFeeChanger", isAgreedBrandFeeChanger);
281
        model.addAttribute("isAgreedBrandFeeChanger", isAgreedBrandFeeChanger);
282
        model.addAttribute("pendingFormList", pendingFormList);
282
        model.addAttribute("pendingFormList", pendingFormList);
283
        model.addAttribute("brandType", StoreType.valueList);
283
        model.addAttribute("brandType", StoreType.valueList);
284
        return "pendingForm";
284
        return "pendingForm";
285
    }
285
    }