Subversion Repositories SmartDukaan

Rev

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

Rev 27218 Rev 27229
Line 529... Line 529...
529
		}
529
		}
530
		model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
530
		model.addAttribute("hygienePercentage", (hygieneCount * 100) / (invalidHygieneCount + hygieneCount));
531
 
531
 
532
		model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
532
		model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
533
		model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
533
		model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
-
 
534
		if(loginDetails.isReadOnly()) {
-
 
535
			return "dashboard-readonly";
-
 
536
		} else {
534
		return "dashboard1";
537
			return "dashboard1";
-
 
538
		}
535
	}
539
	}
536
 
540
 
537
	private ChartModel getBrandChart(int fofoId) {
541
	private ChartModel getBrandChart(int fofoId) {
538
 
542
 
539
		LocalDateTime curDate = LocalDate.now().atStartOfDay();
543
		LocalDateTime curDate = LocalDate.now().atStartOfDay();