feat: add progress percentage calculations to project and task details
This commit is contained in:
@@ -172,7 +172,7 @@ public class TaskSection : EntityBase<Guid>
|
||||
return 0.0;
|
||||
|
||||
var timeSpent = GetTotalTimeSpent();
|
||||
var percentage = (timeSpent.TotalHours / FinalEstimatedHours.TotalHours) * 100.0;
|
||||
var percentage = (timeSpent.TotalMinutes / FinalEstimatedHours.TotalMinutes) * 100.0;
|
||||
|
||||
// محدود کردن درصد به 100 (در صورتی که زمان مصرف شده بیشتر از تخمین باشد)
|
||||
return Math.Min(percentage, 100.0);
|
||||
|
||||
Reference in New Issue
Block a user