Added estimated time to clockify project import

This commit is contained in:
Constantin Graf
2025-02-04 13:45:10 -05:00
committed by Constantin Graf
parent 18162b0ff5
commit 0252d984cb
3 changed files with 4 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ class ClockifyProjectsImporter extends DefaultImporter
'color' => $this->colorService->getRandomColor(),
'is_billable' => $record['Billability'] === 'Yes',
'billable_rate' => $billableRateKey !== null && $record[$billableRateKey] !== '' ? (int) (((float) $record[$billableRateKey]) * 100) : null,
'estimated_time' => $record['Estimated (h)'] !== '' && is_numeric($record['Estimated (h)']) ? (int) ($record['Estimated (h)'] * 3600) : null,
]);
}