Subversion Repositories SmartDukaan

Rev

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

Rev 33247 Rev 33763
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",