mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 08:12:17 +01:00
Added ability to archive projects and clients, fixes ST-37
This commit is contained in:
committed by
Gregor Vostrak
parent
f21a2d4bdd
commit
a69d1cb4c4
@@ -47,6 +47,9 @@ class ProjectUpdateRequest extends FormRequest
|
||||
'required',
|
||||
'boolean',
|
||||
],
|
||||
'is_archived' => [
|
||||
'boolean',
|
||||
],
|
||||
'client_id' => [
|
||||
'nullable',
|
||||
new ExistsEloquent(Client::class, null, function (Builder $builder): Builder {
|
||||
@@ -66,6 +69,13 @@ class ProjectUpdateRequest extends FormRequest
|
||||
];
|
||||
}
|
||||
|
||||
public function getIsArchived(): bool
|
||||
{
|
||||
assert($this->has('is_archived'));
|
||||
|
||||
return (bool) $this->input('is_archived');
|
||||
}
|
||||
|
||||
public function getBillableRate(): ?int
|
||||
{
|
||||
$input = $this->input('billable_rate');
|
||||
|
||||
Reference in New Issue
Block a user