Subversion Repositories SmartDukaan

Rev

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

Rev 26400 Rev 26413
Line 408... Line 408...
408
						10, ProfitMandiConstants.CUTOFF_INVESTMENT));
408
						10, ProfitMandiConstants.CUTOFF_INVESTMENT));
409
				
409
				
410
				//Hardcoded for valentine
410
				//Hardcoded for valentine
411
				//Hardcoded for valentine
411
				//Hardcoded for valentine
412
				if(LocalDate.now().isBefore(LocalDate.of(2020, 2, 17))) {
412
				if(LocalDate.now().isBefore(LocalDate.of(2020, 2, 17))) {
413
					double valentineSales = fofoOrderItemRepository.selectSumAmountGroupByRetailer(LocalDate.of(2020, 2, 11).atStartOfDay(), 
413
					double valentineSales = fofoOrderItemRepository.selectSumAmountGroupByRetailer(LocalDate.of(2020, 3, 6).atStartOfDay(), 
414
							LocalDate.of(2020, 2, 17).atStartOfDay(), loginDetails.getFofoId(), false).get(loginDetails.getFofoId());
414
							LocalDate.of(2020, 3, 10).atStartOfDay(), loginDetails.getFofoId(), false).get(loginDetails.getFofoId());
415
					if(valentineSales < ONE_LAC) {
415
					if(valentineSales < ONE_LAC) {
416
						model.addAttribute("valentineSale", "ONE_LAC");
416
						model.addAttribute("valentineSale", "ONE_LAC");
417
						model.addAttribute("valentineShort", ONE_LAC - valentineSales);
417
						model.addAttribute("valentineShort", ONE_LAC - valentineSales);
418
					} else if(valentineSales < TWO_LAC) {
418
					} else if(valentineSales < TWO_LAC) {
419
						model.addAttribute("valentineSale", "TWO_LAC");
419
						model.addAttribute("valentineSale", "TWO_LAC");