added rounding for WeeklyTotal to 2DP

#15
This commit is contained in:
chris.watts90@outlook.com 2017-02-15 20:48:19 +00:00
parent 79f5e392e9
commit 78acd50ba6

View File

@ -14,8 +14,9 @@ namespace Interfaces
public int CalendarWeek { get; set; } public int CalendarWeek { get; set; }
public int TimeLogCount { get { return TimeLogs.Sum(x => x.LogCount); } } public int TimeLogCount { get { return TimeLogs.Sum(x => x.LogCount); } }
public List<DailyLogs> TimeLogs { get; set; } public List<DailyLogs> TimeLogs { get; set; }
public int MaxDailyLogCount { get { return TimeLogs.Max(x => x.LogCount); } }
public double WeeklyTotal { public double WeeklyTotal {
get { return TimeLogs.Sum(x => x.DailyTotal); } get { return Math.Round(TimeLogs.Sum(x => x.DailyTotal), 2); }
} }
public float HoursPerWeekMinutes { get; set; } public float HoursPerWeekMinutes { get; set; }
} }