Subversion Repositories SmartDukaan

Rev

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

Rev 27733 Rev 27749
Line 71... Line 71...
71
		LocalDateTime curDate = LocalDate.now().atStartOfDay();
71
		LocalDateTime curDate = LocalDate.now().atStartOfDay();
72
		Map<Integer, Double> lmtdSale = fofoOrderItemRepository.selectSumMopGroupByRetailer(
72
		Map<Integer, Double> lmtdSale = fofoOrderItemRepository.selectSumMopGroupByRetailer(
73
				curDate.withDayOfMonth(1).minusMonths(1), curDate.with(LocalTime.MAX).minusMonths(1), 0, false);
73
				curDate.withDayOfMonth(1).minusMonths(1), curDate.with(LocalTime.MAX).minusMonths(1), 0, false);
74
		Map<Integer, Double> mtdSale = fofoOrderItemRepository.selectSumMopGroupByRetailer(curDate.withDayOfMonth(1),
74
		Map<Integer, Double> mtdSale = fofoOrderItemRepository.selectSumMopGroupByRetailer(curDate.withDayOfMonth(1),
75
				curDate.with(LocalTime.MAX), 0, false);
75
				curDate.with(LocalTime.MAX), 0, false);
76
		int lengthOfMonth = YearMonth.from(curDate.minusMonths(1)).lengthOfMonth();
-
 
77
 
76
 
78
		Map<Integer, Double> lmsSale = fofoOrderItemRepository.selectSumMopGroupByRetailer(
77
		Map<Integer, Double> lmsSale = fofoOrderItemRepository.selectSumMopGroupByRetailer(
79
				curDate.withDayOfMonth(1).minusMonths(1),
-
 
80
				curDate.with(LocalTime.MAX).minusMonths(1).withDayOfMonth(lengthOfMonth), 0, false);
78
				curDate.withDayOfMonth(1).minusMonths(1), curDate.withDayOfMonth(1), 0, false);
81
 
79
 
82
		Map<Integer, Double> todaytertiary = fofoOrderItemRepository.selectSumMopGroupByRetailer(curDate,
80
		Map<Integer, Double> todaytertiary = fofoOrderItemRepository.selectSumMopGroupByRetailer(curDate,
83
				curDate.with(LocalTime.MAX), 0, false);
81
				curDate.with(LocalTime.MAX), 0, false);
84
 
82
 
85
		Map<Integer, Long> last3daystertiary = fofoOrderItemRepository.selectQtyGroupByRetailer(curDate.minusDays(4),
83
		Map<Integer, Long> last3daystertiary = fofoOrderItemRepository.selectQtyGroupByRetailer(curDate.minusDays(4),