mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
Fix billiable rate in updateMultiple time entries (ST-396)
This commit is contained in:
committed by
Constantin Graf
parent
e538fec7c7
commit
9df91f4e4a
@@ -299,6 +299,7 @@ class TimeEntryController extends Controller
|
||||
$error = new Collection();
|
||||
|
||||
foreach ($ids as $id) {
|
||||
/** @var TimeEntry|null $timeEntry */
|
||||
$timeEntry = $timeEntries->firstWhere('id', $id);
|
||||
if ($timeEntry === null) {
|
||||
// Note: ID wrong or time entry in different organization
|
||||
@@ -316,6 +317,7 @@ class TimeEntryController extends Controller
|
||||
if ($overwriteClient) {
|
||||
$timeEntry->client()->associate($client);
|
||||
}
|
||||
$timeEntry->setComputedAttributeValue('billable_rate');
|
||||
$timeEntry->save();
|
||||
$success->push($id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user