| Line 544... |
Line 544... |
| 544 |
public String extendBilling(HttpServletRequest request,
|
544 |
public String extendBilling(HttpServletRequest request,
|
| 545 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model) throws Exception {
|
545 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model) throws Exception {
|
| 546 |
FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
|
546 |
FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
|
| 547 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
547 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 548 |
if (Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com", "amit.gupta@smartdukaan.com",
|
548 |
if (Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com", "amit.gupta@smartdukaan.com",
|
| 549 |
"rahul.katyal@smartdukaan.com", "sm@smartdukaan.com", "mohit.gulati@smartdukaan.com").contains(loginDetails.getEmailId())) {
|
549 |
"rahul.katyal@smartdukaan.com", "sm@smartdukaan.com", "mohit.gulati@smartdukaan.com", "chiranjib.sarkaar@smartdukaan.com").contains(loginDetails.getEmailId())) {
|
| 550 |
fofoStore.setGraceDate(LocalDate.now().plusDays(2));
|
550 |
fofoStore.setGraceDate(LocalDate.now().plusDays(2));
|
| 551 |
fofoStore.setGraceCount(fofoStore.getGraceCount() + 1);
|
551 |
fofoStore.setGraceCount(fofoStore.getGraceCount() + 1);
|
| 552 |
model.addAttribute("response1", mvcResponseSender.createResponseString(fofoStore.getGraceCount()));
|
552 |
model.addAttribute("response1", mvcResponseSender.createResponseString(fofoStore.getGraceCount()));
|
| 553 |
} else {
|
553 |
} else {
|
| 554 |
throw new ProfitMandiBusinessException("Access Denied", "Unauthorised Access",
|
554 |
throw new ProfitMandiBusinessException("Access Denied", "Unauthorised Access",
|