Subversion Repositories SmartDukaan

Rev

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

Rev 26158 Rev 26162
Line 370... Line 370...
370
				model.addAttribute("partnerTypeImage", PartnerType.imageMap.get(partnerType));
370
				model.addAttribute("partnerTypeImage", PartnerType.imageMap.get(partnerType));
371
				model.addAttribute("fofoStore", fofoStore);
371
				model.addAttribute("fofoStore", fofoStore);
372
				model.addAttribute("partnerType", partnerType);
372
				model.addAttribute("partnerType", partnerType);
373
				model.addAttribute("hasGift", hasGift(loginDetails.getFofoId()));
373
				model.addAttribute("hasGift", hasGift(loginDetails.getFofoId()));
374
				model.addAttribute("giftItemId", ProfitMandiConstants.GIFT_ID);
374
				model.addAttribute("giftItemId", ProfitMandiConstants.GIFT_ID);
375
				model.addAttribute("retailers", gson.toJson(new JSONObject()
375
				model.addAttribute("retailers", new JSONObject()
376
						.append("code", fofoStore.getCode())
376
						.append("code", fofoStore.getCode())
377
						.append("partnerId", fofoStore.getId())));
377
						.append("partnerId", fofoStore.getId()).toString());
378
				LocalDateTime curDate = LocalDate.now().atStartOfDay();
378
				LocalDateTime curDate = LocalDate.now().atStartOfDay();
379
				Map<Integer, Double> accesoriesmtdsale = fofoOrderRepository
379
				Map<Integer, Double> accesoriesmtdsale = fofoOrderRepository
380
						.selectSumSaleGroupByFofoIdsForMobileOrAccessories(loginDetails.getFofoId(),
380
						.selectSumSaleGroupByFofoIdsForMobileOrAccessories(loginDetails.getFofoId(),
381
								curDate.withDayOfMonth(1), curDate.with(LocalTime.MAX), Optional.of(false));
381
								curDate.withDayOfMonth(1), curDate.with(LocalTime.MAX), Optional.of(false));
382
				LOGGER.info("accesoriesmtdsale" + accesoriesmtdsale);
382
				LOGGER.info("accesoriesmtdsale" + accesoriesmtdsale);