feat: add progress percentage calculations to project and task details

This commit is contained in:
2026-01-06 18:19:16 +03:30
parent 0757ac7e74
commit 9d09ef60f8
6 changed files with 18 additions and 24 deletions

View File

@@ -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);