Fixed billable rate in import

This commit is contained in:
Constantin Graf
2024-04-26 00:20:00 +02:00
parent bfc1c8fc47
commit 3c158cc015
2 changed files with 2 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ class ClockifyTimeEntriesImporter extends DefaultImporter
throw new ImportException('End date ("'.$record['End Date'].'") or time ("'.$record['End Time'].'") are invalid');
}
$timeEntry->end = $end;
$timeEntry->setComputedAttributeValue('billable_rate');
$timeEntry->save();
$this->timeEntriesCreated++;
}

View File

@@ -102,6 +102,7 @@ class TogglTimeEntriesImporter extends DefaultImporter
throw new ImportException('End date ("'.$record['End date'].'") or time ("'.$record['End time'].'") are invalid');
}
$timeEntry->end = $end;
$timeEntry->setComputedAttributeValue('billable_rate');
$timeEntry->save();
$this->timeEntriesCreated++;
}