fix(project-finance-controller): correct estimated hours calculation to reflect hours instead of minutes
This commit is contained in:
@@ -40,7 +40,7 @@ export default class ProjectfinanceController extends WorklenzControllerBase {
|
|||||||
SELECT
|
SELECT
|
||||||
t.id,
|
t.id,
|
||||||
t.name,
|
t.name,
|
||||||
COALESCE(t.total_minutes, 0)::float as estimated_hours,
|
COALESCE(t.total_minutes, 0) / 60.0::float as estimated_hours,
|
||||||
COALESCE((SELECT SUM(time_spent) FROM task_work_log WHERE task_id = t.id), 0) / 3600.0::float as total_time_logged,
|
COALESCE((SELECT SUM(time_spent) FROM task_work_log WHERE task_id = t.id), 0) / 3600.0::float as total_time_logged,
|
||||||
t.project_id,
|
t.project_id,
|
||||||
t.status_id,
|
t.status_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user