| Line 132... |
Line 132... |
| 132 |
PaymentOptionRepository paymentOptionRepository;
|
132 |
PaymentOptionRepository paymentOptionRepository;
|
| 133 |
|
133 |
|
| 134 |
@Autowired
|
134 |
@Autowired
|
| 135 |
ResponseSender responseSender;
|
135 |
ResponseSender responseSender;
|
| 136 |
|
136 |
|
| 137 |
List<String> agreedBrandFeeChangerEmail = Arrays.asList("sm@smartdukaan.com");
|
137 |
List<String> agreedBrandFeeChangerEmail = Arrays.asList("sm@smartdukaan.com", "kamini.sharma@smartdukaan.com");
|
| 138 |
|
138 |
|
| 139 |
// Loi Form
|
139 |
// Loi Form
|
| 140 |
@RequestMapping(value = "/loiForm", method = RequestMethod.GET)
|
140 |
@RequestMapping(value = "/loiForm", method = RequestMethod.GET)
|
| 141 |
public String loiForm(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
141 |
public String loiForm(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
| 142 |
List<AuthUser> authUsersList = loiFormService.getReferalAuthList();
|
142 |
List<AuthUser> authUsersList = loiFormService.getReferalAuthList();
|
| Line 555... |
Line 555... |
| 555 |
|
555 |
|
| 556 |
LOGGER.info("approverMail-" + approverMail);
|
556 |
LOGGER.info("approverMail-" + approverMail);
|
| 557 |
// Approver - Manager or Upper manager of loi filledBy(BM)
|
557 |
// Approver - Manager or Upper manager of loi filledBy(BM)
|
| 558 |
boolean isApprover = approverMail.contains(email);
|
558 |
boolean isApprover = approverMail.contains(email);
|
| 559 |
LOGGER.info("isApprover-" + isApprover);
|
559 |
LOGGER.info("isApprover-" + isApprover);
|
| 560 |
List<String> authEmail = Arrays.asList("sm@smartdukaan.com", "tarun.verma@smartdukaan.com", "ashutosh.verma@smartdukaan.com");
|
560 |
List<String> authEmail = Arrays.asList("sm@smartdukaan.com", "tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com", "ashutosh.verma@smartdukaan.com");
|
| 561 |
boolean isAuthUser = authEmail.stream().anyMatch(x -> x.equals(email));
|
561 |
boolean isAuthUser = authEmail.stream().anyMatch(x -> x.equals(email));
|
| 562 |
if (flag) {
|
562 |
if (flag) {
|
| 563 |
if (isApprover || isAuthUser) {
|
563 |
if (isApprover || isAuthUser) {
|
| 564 |
loiForm.setLoiApprover(email);
|
564 |
loiForm.setLoiApprover(email);
|
| 565 |
loiForm.setLoiApproved(flag);
|
565 |
loiForm.setLoiApproved(flag);
|