| Line 134... |
Line 134... |
| 134 |
FofoStoreRepository fofoStoreRepository;
|
134 |
FofoStoreRepository fofoStoreRepository;
|
| 135 |
|
135 |
|
| 136 |
@Autowired
|
136 |
@Autowired
|
| 137 |
ResponseSender responseSender;
|
137 |
ResponseSender responseSender;
|
| 138 |
|
138 |
|
| 139 |
List<String> agreedBrandFeeChangerEmail = Arrays.asList("sm@smartdukaan.com", "kamini.sharma@smartdukaan.com");
|
139 |
List<String> agreedBrandFeeChangerEmail = Arrays.asList("kamini.sharma@smartdukaan.com");
|
| 140 |
|
140 |
|
| 141 |
// Loi Form
|
141 |
// Loi Form
|
| 142 |
@RequestMapping(value = "/loiForm", method = RequestMethod.GET)
|
142 |
@RequestMapping(value = "/loiForm", method = RequestMethod.GET)
|
| 143 |
public String loiForm(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
143 |
public String loiForm(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
| 144 |
List<AuthUser> authUsersList = loiFormService.getReferalAuthList();
|
144 |
List<AuthUser> authUsersList = loiFormService.getReferalAuthList();
|
| Line 625... |
Line 625... |
| 625 |
|
625 |
|
| 626 |
LOGGER.info("approverMail-" + approverMail);
|
626 |
LOGGER.info("approverMail-" + approverMail);
|
| 627 |
// Approver - Manager or Upper manager of loi filledBy(BM)
|
627 |
// Approver - Manager or Upper manager of loi filledBy(BM)
|
| 628 |
boolean isApprover = approverMail.contains(email);
|
628 |
boolean isApprover = approverMail.contains(email);
|
| 629 |
LOGGER.info("isApprover-" + isApprover);
|
629 |
LOGGER.info("isApprover-" + isApprover);
|
| 630 |
List<String> authEmail = Arrays.asList("sm@smartdukaan.com", "tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com", "ashutosh.verma@smartdukaan.com");
|
630 |
List<String> authEmail = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com");
|
| 631 |
boolean isAuthUser = authEmail.stream().anyMatch(x -> x.equals(email));
|
631 |
boolean isAuthUser = authEmail.stream().anyMatch(x -> x.equals(email));
|
| 632 |
if (flag) {
|
632 |
if (flag) {
|
| 633 |
if (isApprover || isAuthUser) {
|
633 |
if (isApprover || isAuthUser) {
|
| 634 |
loiForm.setLoiApprover(email);
|
634 |
loiForm.setLoiApprover(email);
|
| 635 |
loiForm.setLoiApproved(flag);
|
635 |
loiForm.setLoiApproved(flag);
|