| Line 534... |
Line 534... |
| 534 |
public String extendBilling(HttpServletRequest request,
|
534 |
public String extendBilling(HttpServletRequest request,
|
| 535 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model) throws Exception {
|
535 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model) throws Exception {
|
| 536 |
FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
|
536 |
FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
|
| 537 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
537 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 538 |
if (Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com", "amit.gupta@smartdukaan.com",
|
538 |
if (Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com", "amit.gupta@smartdukaan.com",
|
| 539 |
"rahul.katyal@smartdukaan.com", "sm@smartdukaan.com").contains(loginDetails.getEmailId())) {
|
539 |
"rahul.katyal@smartdukaan.com", "sm@smartdukaan.com", "mohit.gulati@smartdukaan.com").contains(loginDetails.getEmailId())) {
|
| 540 |
fofoStore.setGraceDate(LocalDate.now().plusDays(2));
|
540 |
fofoStore.setGraceDate(LocalDate.now().plusDays(2));
|
| 541 |
fofoStore.setGraceCount(fofoStore.getGraceCount() + 1);
|
541 |
fofoStore.setGraceCount(fofoStore.getGraceCount() + 1);
|
| 542 |
fofoStoreRepository.persist(fofoStore);
|
542 |
fofoStoreRepository.persist(fofoStore);
|
| 543 |
model.addAttribute("response1", mvcResponseSender.createResponseString(fofoStore.getGraceCount()));
|
543 |
model.addAttribute("response1", mvcResponseSender.createResponseString(fofoStore.getGraceCount()));
|
| 544 |
} else {
|
544 |
} else {
|