mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 20:52:14 +01:00
Fixed billable rate in import
This commit is contained in:
@@ -117,6 +117,7 @@ class ClockifyTimeEntriesImporter extends DefaultImporter
|
|||||||
throw new ImportException('End date ("'.$record['End Date'].'") or time ("'.$record['End Time'].'") are invalid');
|
throw new ImportException('End date ("'.$record['End Date'].'") or time ("'.$record['End Time'].'") are invalid');
|
||||||
}
|
}
|
||||||
$timeEntry->end = $end;
|
$timeEntry->end = $end;
|
||||||
|
$timeEntry->setComputedAttributeValue('billable_rate');
|
||||||
$timeEntry->save();
|
$timeEntry->save();
|
||||||
$this->timeEntriesCreated++;
|
$this->timeEntriesCreated++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ class TogglTimeEntriesImporter extends DefaultImporter
|
|||||||
throw new ImportException('End date ("'.$record['End date'].'") or time ("'.$record['End time'].'") are invalid');
|
throw new ImportException('End date ("'.$record['End date'].'") or time ("'.$record['End time'].'") are invalid');
|
||||||
}
|
}
|
||||||
$timeEntry->end = $end;
|
$timeEntry->end = $end;
|
||||||
|
$timeEntry->setComputedAttributeValue('billable_rate');
|
||||||
$timeEntry->save();
|
$timeEntry->save();
|
||||||
$this->timeEntriesCreated++;
|
$this->timeEntriesCreated++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user